State Management with Vuex Chapter 21
Vuex state flow
Let's break down this example into a step-by-step process:
- Initial State is rendered inside of a Vue component.
- A Vue component dispatches an Action to get some data from a Backend API.
- This then fires a Commit event that is handled by a Mutation. This Mutation
returns a new version of the state containing the data from the Backend API. - The process can then be seen in the Vue Devtools, and you have the ability to
"time travel" between different versions of the previous state that takes place
within the application. - The new State is then rendered inside of the Vue Components.