Using "this" in Vue
One of the most common errors we find in Vue code on StackOverflow is the misuse of
this. The most common mistakes fall generally in two areas, using
this in callbacks for promises or other asynchronous functions and using arrow functions to define methods, computed properties, etc.
Vuex is a state management pattern + library for Vue.js applications. It serves as a centralised store for all the components in an application, with rules ensuring that the state can only be mutated in a predictable fashion. It also integrates with Vue's official dev tools extension to provide advanced features such as zero-config time-travel debugging and state snapshot export/import.