Skip to content

consider about Ref as props when using mount api #192

Closed
@Jokcy

Description

@Jokcy

I found VTU use this code to make reactive of props when mount:

const props = reactive({
    ...options?.attrs,
    ...options?.props,
    ref: MOUNT_COMPONENT_REF
  })

but if I have const someRef = ref({}) and pass it to mount:

mount(App, {
  props: {
    someRef: someRef
  }
})

it will break the Ref structure

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions