After reviewing the provided documentation (emphasis added):
You have the option to commit mutations in components using this.$store.commit('xxx')
, or utilize the mapMutations
helper which links component methods to store.commit
calls (requires root store
injection)
If your Vuex setup includes "root store
injection," it means that the store
is available globally within your Vue instance.
Essentially, this indicates that the $store
property grants access to the store in every child component nested within the Vue instance component tree.
This aspect of Vuex's functionality is considered one of its strengths; providing state accessibility to all components while closely monitoring each state interaction that occurs.