Login
Remember
Register
Ask a Question
What are the differences of vuex store and plain global object?
0
votes
asked
Sep 9, 2023
in
VueJS
by
DavidAnderson
What are the differences of vuex store and plain global object?
vuejs-interview-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Sep 9, 2023
by
DavidAnderson
Below are the two major differences between vuex store and plain global object,
Vuex stores are reactive:
If the store's state changes then vue components will reactively and efficiently get updated
Cannot directly mutate the store's state:
The store's state is changed by explicitly committing mutations to ensure that every state change leaves a track-able record for tooling purpose.
...