In Vuex, mutations are synchronous transactions : store. commit(‘increment’) // any state change that the “increment” mutation may cause // should be done at this moment. To handle asynchronous operations, let’s introduce Actions.
In Vuex, mutations are synchronous transactions : store. commit(‘increment’) // any state change that the “increment” mutation may cause // should be done at this moment. To handle asynchronous operations, let’s introduce Actions.