I have a vuex store, like following:
import spreeApi from \'../../gateways/spree-api\' // initial state const state = { products: [], categories: [] } // mu
For the record. To call other mutations from a mutation method do it like this:
const mutations = { mutationOne(state, payload){ this.commit("mutationTwo", payload) }, mutationTwo(state, payload){ console.log("called from another mutation", payload) } }