Is there a way to dispatch actions between two namespaced vuex modules?

Posted by Jennifer | Updated on

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:

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.

Related Questions & Answers