vuex

What is Vuex? Managing state in an application full of components can be difficult. Facebook discovered this the hard way and created the Flux pattern, which is what Vuex is based upon. Vuex is an official plugin for Vue.js which offers a centralized data store for use within your application. Vuex features a unidirectional data flow leading to simpler application design and reasoning. Within a Vuex application, the datastore holds all shared application state.

Vuex is a great tool for state management, but i find that using vuex causes lot of boilerplate code. I will try to explain it in this blog post and will explore a tool called “vuex-map-fields” which i think makes things simpler.

Before going further, its important to realize that vuex-map-fields is only useful for two way data binding of form fields.

excellence-social-linkdin
excellence-social-facebook
excellence-social-instagram
excellence-social-skype