0👍
I’ve found my answer. I didn’t think to set up actions on the root namespace. E.g.
From non-namespaced context:
dispatch(APP_RESET)
In each of my modules:
[APP_RESET]: {
root: true,
handler ({commit}) {
commit(RESET_MODULE_A)
}
}
From namespaced context:
dispatch(APP_RESET)
In each of my modules:
['namespaceOfDispatcherModule/' + APP_RESET]: {
root: true,
handler ({commit}) {
commit(RESET_MODULE_A)
}
}
- [Vuejs]-Problem with using vue.js routing and mixin
- [Vuejs]-How to do conditional from an array object that showing value is null using v-if
Source:stackexchange.com