Vuex
Vuex is a state management pattern and library for VueJS apps. It allows the developer to persist data and state across multiple components.
It's reactive.
Overview
After installing Vuex in your app.js and making it available to your Vue instance, you're going to:
- Set up a store for the data properties that you want to persist across your app.
- Set up getters for computed store properties that you want to persist across your app.
- Set up mutators to mutate the properties that you want to persist across your app.
- Set up actions for any asynchronous mutations of the properties that you want to persist across your app.
- Create different modules for different types of data, with each module containing its own store, getters, mutators and actions.
- Namespace each module to avoid name collisions