I have a vuex store, like following:
import spreeApi from \'../../gateways/spree-api\' // initial state const state = { products: [], categories: [] } // mu
And if I have some common code that affects state between multiple mutations, I have to duplicate the same code on all my mutations? Or there's a better way to do that?