Core Concepts: Mutations

Learn how to mutate the Vuex state and get some practice.

We'll cover the following...

Vuex is a state machine loosely based on React’s Redux and the Flux pattern. The Flux pattern offers a solution for data distributed across multiple views (in Vue’s case, views are components) that can also do mutations. So, instead of numerous controllers that have to keep track of any possible state mutation and update any related component, Vuex is a centralized solution.

Mutations are a central feature of Vuex. They allow us to change the state. In ...