In Vue 2 and Vue 3, the default props of components with Object type behaves inconsistently #12050
Answered
by
lisonge
JohnieXu
asked this question in
Help/Questions
-
First in vue3, the UI does not update when I update The same code as above, works fine in vue2 What confuses me is that whether the inconsistent behavior between the two is intentionally designed or not considered. |
Beta Was this translation helpful? Give feedback.
Answered by
lisonge
Oct 5, 2024
Replies: 2 comments
-
your object getter is not tracked - default: () => ({
+ default: () => reactive({ |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
JohnieXu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
your object getter is not tracked
play