I have a vuex store, like following:
import spreeApi from \'../../gateways/spree-api\'
// initial state
const state = {
products: [],
categories: []
}
// mu
Reading the Vuex documentation on Actions, it's quite clear what they are made for.
Actions can (not must) contain asynchronous code. In fact, the following example is correct
increment (context) {
context.commit('increment')
}
I do not see any issue in using actions for performing multiple mutations.