DEV Community

Discussion on: Are you committing these mistakes as a Vue developer?

 
jareddahlke profile image
Jared Dahlke

also, as a design principle, you only want to expose the minimal possible information to each component. (eg. the users component shouldn't have access to the inventory component variables) Storing variables in the global state is exposing every component to that variable.