Please enable JavaScript.
Coggle requires JavaScript to display documents.
Vue.js (vuex (provides a global state container that all components have…
Vue.js
vuex
attempts to solve the problem of managing application state within a complex component hierarchy
designed after the flux design pattern created by Facebook
provides a global state container that all components have access to
state is reactive
vuex store
mimic vue instances
state
actions
best practice to call mutations in order to update state
getters
analogous to computed properties on Vue instance
mutations
commit + track state changes
vue-loader
Hot module replacement
--hot option to webpack-dev-server in package.json "scripts" section
automatically refresh page on change
maintains component data state during "refresh"