I’ve searched a lot, but there is no clear answer to that. Basically, what should be the best practice to automatically change a route after a mutation?
Ex: I click a button to login() -> action login that makes an http call -> mutation LOGIN_SUCCESSFUL -> I want to redirect the user to the main page
Should I wrap the action in a Promise, and then listen to the result to call the route change from the component?
Should I do it directly from the
vuex-router-synchelps in any way?
Thanks a lot!