JavaScript Jabber cover image

State Management ft. Assaf Krintza - JSJ 508

JavaScript Jabber

00:00

The Difference Between Data and Stage in Single Page Application

State is the information that describes what you see on the screen, the stuff that changes. The other version of state is something like the x state library which seems to be gaining some popularity. It's not about holding data in a place that's accessible, it's about maintaining that. I think of it more of as stage where, ok, i'm about to do this. Ok, i just did this,. I'm doing this. And together alongside it. You can also hold data. For example, if you have ike to doat and the data might be an array of the to do items you need to do and their status, if they're completed or not. So this

Play episode from 06:57
Transcript

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app