Skip to content

Bug with passing object with ref to props #4844

@Fl0pZz

Description

@Fl0pZz

Version

3.2.20

Reproduction link

sfc.vuejs.org/

Steps to reproduce

  1. run reproduction
  2. open browser dev tools

What is expected?

Expected Ref to be unwrapped

What is actually happening?

In dev tools:

[Vue warn]: Invalid prop: type check failed for prop "msg". Expected String with value "[object Object]", got Object  
  at <Hello msg=Ref< "hello" > > 
  at <Repl>

Full example of usage:
https://codesandbox.io/s/laughing-zhukovsky-17qpf?file=/src/App.vue

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions