Making a large scale app with vue.js (part 1): modularize your store!
Stephane Souron
1.1K14

Great read! I’m curious about the upcoming articles. 👍

The thing I’m struggling with the most is to decide what should be kept in a store (vuex) or on the component itself. Putting all the data into a store seems like a big overhead when it’s only being used in 1 component (overview with users)?

E.g. Admin panel with multiple overviews and detail pages, such as users, roles, customers,… Do you keep everything in vuex modules even when you navigate from one overview to another? Doesn’t this build up the memory usage a lot?

Any advice on when to use vuex and what to keep in the component data?