Answer the question
In order to leave comments, you need to log in
When to use Vuex?
The documentation for vue.js says: But if you are building a medium-to-large-scale SPA, chances are you have run into situations that make you think about how to better handle state outside of your Vue components, and Vuex will be the natural next step for you.
How to understand that the application we are starting to make is a medium to large SPA or not? By the number of states? Screens? Starting from what quantity?
Answer the question
In order to leave comments, you need to log in
Do not find fault with words, reason logically. As soon as you have data in your application that various components may need (this may be information about the current user, about the session, or something that you then store in localstorage) - you need to use a separate storage, in this case Vuex . Just because it's convenient.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question