What is Vuex mutation?

In Vuex, mutations are synchronous transactions: store . commit(‘increment’) // any state change that the “increment” mutation may cause // should be done at this moment. To handle asynchronous operations, let’s introduce Actions.

Read more

What is Vuex module?

To help with that, Vuex allows us to divide our store into modules . Each module can contain its own state, mutations, actions, getters, and even nested modules – it’s fractal all the way down: const moduleA = { state: () => ({ … }), mutations: { … }, actions: { …

Read more

What is a Vuex getter?

Vuex allows us to define “getters” in the store. You can think of them as computed properties for stores . WARNING. As of Vue 3.0, the getter’s result is not cached as the computed property does. This is a known issue that requires Vue 3.1 to be released.

Read more