DEV Community

Discussion on: What's the purpose of Vuex?

Collapse
 
vinceramces profile image
Vince Ramces Oliveros

Actions can be called in async. Its not always on the API call(Axios, fetch or whatever HTTP request) but returns a Promise. After the promise/async has fulfilled. You can proceed to mutations to mutate the state.