by parr0t · 8y ago · 0 comments
(Disclaimer: I use React/Redux and not Vue/Vuex, but I think the above applies equally to both.)
That then leads me to my next question though, if I am using Vuex to abstract the API calls is it bad practice to use Vuex actions for API calls that don't need to be saved into the store?
Then api.fetchFoo(bar).then() mostly does it.
Benefit is separation of API from component.