What is State Management? (Vue 3)

preview_player
Показать описание
What is State Management?

State Management solves a bunch of problems we find in complex, multi-page apps

It allows us to store all of our app’s core data (along with all of the methods related to that data) in one, single, centralized place which we call a Store

This Store sits outside of all of our components, but in a way that all of our components can access all of the data & methods within the Store.

In a typical Store, we have 3 sections:
- State, where we store all of our data
- Actions, where we store methods that can access the data in our state and also modify it
- Getters, where we place methods that grab data from our state (possibly modify it in some way) and then return it

Рекомендации по теме
Комментарии
Автор

Please Like, Share, Subscribe & Comment - it all helps me create more content for you!

MakeAppswithDanny
Автор

Mate, I was browsing for an explanation for "State Management" and your video was in the list with suggested answers. I almost skipped it because I was most interested in understanding Redux and MobX for React, but decided to give it a try just in case. I wasn't even logged in on YouTube, but after watching your video, I just had to sign in and leave a comment.

THANK YOU!

From ALL the videos I watched, yours was the only one with an explanation that was simple to understand and made total sense. Perhaps it is like Einstein said (or someone just as notorious): You only know something really well when you can explain it in simple terms to someone who knows absolutely nothing about it!

I've seen guys (good guys, too!) going over and over about states and what they mean in programming and how important they are and etc etc etc and they all fail to put it in non-cryptic easy to understand whats, hows and whys. Your explanation on how troublesome it is to cascade information down (or up) a component three made it very easy to comprehend and digest. Again, thanks a lot for that! Regards from Brazil.

GeorgesMayrink
Автор

thank you, your videos are good quality greetings from turkey

serkanucakcoglu
Автор

but how do you access the state from child component to pinia state ?

EkronSh