-
-
Notifications
You must be signed in to change notification settings - Fork 9k
Closed
Description
Vue version
3.2.45
Link to minimal reproduction
Steps to reproduce
click button, check console.log
What is expected?
no warning
What is actually happening?
I use reactive + toRefs to create a two way data binding. My parent vnode do all the logic, child vnode exists only for dynamic comp rendering.
several questions:
When I send v-model as a complex data structure, everything's fine, except a warning as below, what does that mean?

I try to build a simple demo in SFC, the result is just as excepted, but also find something naughty.

Why VUE doesn't offically support two way data binding, even though we still have ways to bypass the rule? Are there any side effects to do that?
Also I wish we can change the template before Mounted, so we don't need to face the complexity between parent and children.
System Info
No response
Any additional comments?
No response
Metadata
Metadata
Assignees
Labels
No labels