How actions and mutations are different in Vuex?

Actions are quite similar to mutations, but instead of mutating the state, Actions commit mutations . Actions can contain any arbitrary asynchronous code or business logic. Vuex recommends the state object should only be mutated inside the Mutation functions.

Sizin İçin Seçtik  What is namespaced module?

Leave a Reply

Your email address will not be published. Required fields are marked *