So after understanding the project, if a particular state is consumed by multiple components then and then you have to use Vuex.
Read moreHow does Vue state management work?
Vuex is a state management library for Vue. js, that is based on the Flux pattern. In the above code, the increment function is a dispatcher that updates the value of the count property . When we have full control over every state change, we can easily track all of them and make our app much easier to debug.
Read moreWhat is Vuex state management?
State Management is the implementation of a Design Pattern that centralizes the data in a single source of truth (State), so it can be accessed application-wide .24 Haz 2021
Read more