storeToRefs
and reactive()
in setup store
#2319
-
Code Example: https://stackblitz.com/edit/vue-pinia-store-state-reactivity-7wgfwu?file=src%2FApp.vue Directly change Is it by design or is there a bug? |
Beta Was this translation helpful? Give feedback.
Answered by
posva
Jul 20, 2023
Replies: 1 comment
-
This is by design as reactive objects cannot be replaced |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Tim-OuY
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is by design as reactive objects cannot be replaced