You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The first thing to know is that store.dispatch can handle Promise returned by the triggered action handler and it also returns Promise:
store.dispatch('actionA').then(() => {
// ...
})
This opens up the possibility for a component to "do stuff" after a promise was resolved or rejected. Imho this breaks the unidirectional pattern, cause the component will react to the result of the asynchronous action instead of the state of the store. What was the reasoning behind this decision and what are your views on the above statement?