Why do I need this?
The big question is why we need a centralized state management solution in the first place. You may have noticed in the previous projects that we have already used a very simple state.js file with an object containing the global data we needed across our components. Vuex is the next step in that direction. It introduce a few new concepts to help us manage and debug the state of our application in a formal and efficient way.
When your application grows, you or your team will add many more features and components (maybe well over a hundred). Lots of them will share data. With the increasing complexity of the interconnections between your components, you will end up with a mess, with too many components whose data you need ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access