mapMutations
mapMutations is a helper function provided by Vuex, the official state management library for Vue.js. It simplifies the process of committing mutations from within Vue components. Mutations are the only way to actually change the state in a Vuex store.
Without mapMutations, you would typically commit a mutation by calling this.$store.commit('mutationName', payload). mapMutations automates this repetitive
For example, if you have a mutation named 'increment', you can use mapMutations to create a local
You can use mapMutations in the computed property of a Vue component. It takes an array of