reactive/ref为什么无法同步一个对象属性的更改 | Why reactive/ref cannot track a attribute of an object #10646
Replies: 2 comments
-
Mutations are only observed when done through the reactive proxy, not when done on the original non-reactive object. Docs: https://vuejs.org/guide/essentials/reactivity-fundamentals.html#reactive-proxy-vs-original-1 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Here is the code:
When clicking the button, what will happen?
Vue lovers who had lots of experience will quickly answer: nothing will happen. While A Vue starter like me will be confused.
The correct code that will run ideally:
Why?
Beta Was this translation helpful? Give feedback.
All reactions