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.
...