Post

svelte 5 is a banger, but people should be careful globalizing states willy-nilly just to share it. you get in situations where you have to do manual state updates / syncs that could be solved by giving the state a scope (declare in a component), where it goes away and reinits with whatever needs it

That's a really great point. Oversold the "global" part in this video. And once you get the hang of classes to capture state, it feels like an evolution of hooks to declare component-level state too

0 reposts2 likes

No replies yet.