vuex 4 import modules from another file code example Example: vuex state from another module let newLocalState = context.rootState.moduleName.stateName;