0 votes
in VueJS by
What are the differences of vuex store and plain global object?

1 Answer

0 votes
by

Below are the two major differences between vuex store and plain global object,

  1. Vuex stores are reactive: If the store's state changes then vue components will reactively and efficiently get updated
  2. 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.

Related questions

0 votes
asked Sep 10, 2023 in VueJS by DavidAnderson
0 votes
asked Sep 9, 2023 in VueJS by DavidAnderson
...