Vuex: Access State From Another Module
state
references local state and rootState
should be used when accessing the state of other modules.
let session = context.rootState.instance.session;
Documentation: https://vuex.vuejs.org/en/modules.html
from an action :
'contacts:update' ({ commit, rootState }) {
console.log('rootState', rootState.users.form)
......
},