Use Mapping Helpers and Vuex Store State
Learn why we use mapping helpers in Vuex and how to access the state of the Vuex store.
We'll cover the following...
In Vue components, the Vuex store can be accessed directly using this.$store
. It’s not a big deal in small applications, but in larger applications where components can become quite large, we should use mapping helpers like mapGetters
, mapActions
, and mapMutations
...