Vuex store mutation methods do not provide direct access to getters . * It is best practice to keep mutations a simple as possible, only directly affecting the Vuex state.
Read moreWhat is the use of getters in Vuex?
Vuex allows us to define “getters” in the store. You can think of them as computed properties for stores . Like computed properties, a getter’s result is cached based on its dependencies, and will only re-evaluate when some of its dependencies have changed.
Read moreHow do I get Vuex getters?
We implement our getter function in the Vuex store and call it in all the components we need it.
Read more