A basic insight on Vuex and how it can be used inside Vue application.
Vuex is a centralised state management plugin for Vue and in this presentation, I am explaining about how it can solve the inconsistency problem for large scale application.
2. Before Vuex
It was difficult to :
● Keep multiple components on same track.
● Share data in increasing nested components in upward flow.
● Debugging of code was nightmare.
● No mutation in shared data from child
● No abstraction of shared data
5. State
● Single source of truth i.e. single instance app wide
● Used for shared data (no local data of component)
● Reactive in nature
● Can’t be updated directly
19. Modules
1. Has own state, mutations, actions, getters, and nested modules.
2. Give option of modular states and global states
3. Required for large applications for maintenance