6 months ago

Question about application "State"

Posted 6 months ago by TuffRivers

I am trying to learn Vue, and want to get some concepts down. I read alot about vuex and state. Is my understanding of state accurate ?

"state" or "store" is used because we could have components that read/manipulate the same objects on the same page, and if they are ready/writing directly from those components and not a "state" or "store" components would have different data?

If component A and component B both have client name as a field, and i edit the client name in component A, if i am using state, it will automatically update the same client name in component B?

I also assume that is the point of "reactive" magic in vue.


Please sign in or create an account to participate in this conversation.