Why can an ordinary object respond to change? #1404
Answered
by
posva
cnsource
asked this question in
Help and Questions
-
Reproductionhttps://stackblitz.com/edit/github-cjfmgk-bpwdd4?file=src/App.vue Steps to reproduce the bugB is a normal variable, but it can respond to changes Expected behaviorB is added to the array and will no longer have a response Actual behaviorB is added to the array and still has a response Additional informationYou can view the console log |
Beta Was this translation helpful? Give feedback.
Answered by
posva
Jun 27, 2022
Replies: 1 comment 3 replies
-
Because it's a Ref, you need to create a copy of the object with |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
posva
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Because it's a Ref, you need to create a copy of the object with
{...object.value}