A few util functions and a demo of how to handle async calls in Vuex.
Demo: https://lmiller1990.github.io/vuex-async/
Detailed explanation: https://medium.com/@lachlanmiller_52885/reducing-vuex-boilerplate-for-ajax-calls-1cd4a74cef26
npm install
then npm run dev
to try it locally.
Check out the article for motivation/explanation, or the code for some comments. I'll add more documentation, tests and maybe make this into a library in the future. Just a simple example for now.