What is mapState?

mapState is a helper that simplifies creating a computed property that reflects the value of a given state . Similarly: mapGetters is a helper that simplifies creating a computed property that reflects the value returned by a given getter.

Read more

How do Vuex mutations work?

In Vuex, mutations are the only means through which you can change a store’s state . They’re relatively simple and well-known to all Vuex users. The confusion starts when you throw actions into the mix. When learning Vuex, it can take a while for the difference between actions and mutations to become clear.30 Eyl 2021

Read more