You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is how JavaScript works: objects are passed by reference, not by value.
You are not adding state this way, it won't work in other scenarios like SSR. There are other examples in docs.
You are not adding state this way, it won't work in other scenarios like SSR.
If there is no SSR scenario in the project, any solution to avoid the above situation?
Compare to Vuex, v-model got the same result or not?
Looking forward to resolving doubts.
Reproduction
https://stackblitz.com/edit/github-i1nwig-dydpjt
Steps to reproduce the bug
Expected behavior
The setupStore property should not be add.
Actual behavior
New Property 'b' add to store by input3 v-model.
Additional information
In the doc
If the component can add and modify the properties of the store at any time,
will the type definition for state lose its effectiveness?
And still got question in similar discussions: Doubts about using v-model
The text was updated successfully, but these errors were encountered: