Accessing data from Vuex can be done through the state itself, which can be very dangerous, or via the getters. The getters are like data that can be preprocessed and delivered without touching or messing with the Vuex store state.
The whole idea behind getters is the possibility to write custom functions that can extract data from your state in a single place when you need it, so that you get just the data you need.
In this recipe, we will learn how to create a Vuex getter and a dynamic getter that can be used as a high-order function.