Is there a way to dispatch actions between two namespaced vuex modules. You just need to specify that you’re dispatching from the root context:
1 2 | // from the gameboard.js vuex module dispatch('notification/triggerSelfDismissingNotifcation', {...}, {root:true}) |
Now when the dispatch reaches the root it will have the correct namespace path to the notifications module (relative to the root instance).
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.