[Vuejs]-VueJS + VUEX: Async + await (how to compose actions)

0👍

You should read this page https://vuex.vuejs.org/en/actions.html.

You could compose your actions normally like the one you wrote, or with Promise or with the new ES features async await. Async and await are similar to Promise. They make it easier to work with asynchronously code in JavaScript.

Leave a comment