Oh I am happy. Finally, an human explanation of the existence of Vuex. π
But can you explain or give some ressources for concepts as getters, mutation, actions ? Because I donβt know exactly when I have to use each one of them
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.
Oh I am happy. Finally, an human explanation of the existence of Vuex. π
But can you explain or give some ressources for concepts as getters, mutation, actions ? Because I donβt know exactly when I have to use each one of them
To me, currently, Vuex is like an object, with additional immutability safety.
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.
I talk about this in Understanding data flow in Vuex :: JErickson.net. Take a look at that and see if that answers your question.