[Vuejs]-Axios – get data from api in vuex actions?

0👍

Try adding async / await in vuex actions, because actions must be asynchronous and store and mutations synchronous.

Also use try / catch instead Promise that way you keep your code cleaner

Leave a comment