Just one more state manager guys and all will be good.
@lovebes4 сағат бұрын
bruh just one more state mamager bruh I promise bruh this is the last one bruh
@twisterrjl3 сағат бұрын
just one more, c'mon
@ArcticPrimal2 сағат бұрын
Just waiting for a state manager to become a framework similar to how react router became a framework
@ChiragAgg5k5 сағат бұрын
zustand is always gonna be my go to
@spicepirate5 сағат бұрын
me too 👍
@philheathslegalteamСағат бұрын
Jotai
@FusionHyperion22 минут бұрын
Pinia is great for vue
@trappedcat36154 сағат бұрын
Why don't we call state managers governors?
@johnlombardo4 сағат бұрын
State Comptroller?
@JenkkimieСағат бұрын
Mayors. Most countries don't have governors separately but every country has mayors.
@guxitСағат бұрын
Valtio is an overlooked state manager that would simplify that agora zustand entanglement. People seem to avoid it because it's so simple. That's why I like it though.
@someDudeOnYtb41 минут бұрын
Recently discovered it working on a react native project and I think I will start using it in everything,react or vue or vanilla
@Dimonina4 сағат бұрын
New store again... My opinion is not popular, but rxjs in angular has solved all of these store problems many years ago out of the box, but the only problem is that it is difficult to learn for the majority. However, React is a super popular framework, why just can't anyone figure out a versatile solution that just works, but still we have "store" and the functions to update it, but just different syntax. The approach remains the same. This is the biggest problem imo.
@menmikimen3 сағат бұрын
True, angular is really good in this regard. And now, for non-complex problems, it is possible to use signals instead. ❤
@tvujtatata3 сағат бұрын
Better than being forced to used a single opinionated option or writing own. What have you done for the community?
@ivanmaglica2642 сағат бұрын
I love injectable services in Angular
@adityaanuragi691623 минут бұрын
I'm a React dev and am eager to learn Angular I just need to have discipline cuz I've heard its difficult at the start but lovely later
@rajikkali23814 сағат бұрын
Pinia ❤
@aghileslounis3 сағат бұрын
lol
@rahu1gg4 сағат бұрын
For a 4 mins read blog post it took 22 mins youtube video
@ThinkleTink3 сағат бұрын
At this point I think he does it to ensure the ragebait posts and clicks
@witchmorrowСағат бұрын
but that's a good thing, that's entirely the point - he's adding useful comments and pointers. If you don't find his commentary useful then why are you subscribed...
@ThinkleTinkСағат бұрын
@@witchmorrow The format used to be shorter, now it feels like the viewer is being strung along just to always hit that 30 minute video mark or close to there.
@javierflores0948 минут бұрын
Brother just read the article if you don't like the commentary, because that's like the whole point of this channel
@ThinkleTink30 минут бұрын
@javierflores09 K
@abui69144 сағат бұрын
Trust me guys react is one state manager away from perfection
@oddfeeling7956Сағат бұрын
I don't know why I find this funny
@offlercrocgodСағат бұрын
As a few of the comments already mentioned just use signals, legend-state in React and the other frameworks have signals built-in
@Infinitay3 сағат бұрын
Are state managers the new front end framework meta?
@salva-dev4 сағат бұрын
Very interesting... Thanks. I will try it. You should also try nanostores, from Evil Martians, super lightweight and framework independent store.
@guillemgarcia36302 сағат бұрын
man all of this is so easy in solidjs, this vid makes me appreciate it even more
@luka179017 минут бұрын
This
@jatiquep55434 сағат бұрын
I will never leave zustand ❤❤❤
@UliTroyo4 сағат бұрын
Heck yeah! I ran into David K Piano's first talk about XState years ago while looking for state machine content. I use it with Svelte for heavy UI logic.
@ldlework3 сағат бұрын
Zustand is the last state manager needed. Simple as.
@philheathslegalteamСағат бұрын
FYI you can infer a key’s existence in the same object. Both Stiches and my library TW Classed rely on this. But it’s like you say HELLL to infer those types.
@ArcticPrimalСағат бұрын
The author is right it's zustand with redux toolkit features to overcome zustand's shortcomings
@buthow90012 минут бұрын
Have you seen ombistac zedux?
@orlvni4 сағат бұрын
react context + our own state machine for life
@markosunbro27323 сағат бұрын
They will do everything to not use signals )))
@termorey4 сағат бұрын
Effector (and ecosystem) is the best for me in most cases
@alec-dora2 сағат бұрын
Which mac are you using?
@toutpt3 сағат бұрын
I believe it is easy to implement an event driven state mngt based on the Dom 😅 I don t say it should be like this but it just work.
@St0rMsk2 сағат бұрын
That Leo meme from once upon a tim e a hollywood, poining on a TV and titled: Tha'ts PINIA, that's pinia for React
@ronny5843 сағат бұрын
Theo has bless us with a 23 minutes video and not 3hrs, thank goog.
@FusionHyperion17 минут бұрын
TLDR: Basically Pinia
@returnZeroo3 сағат бұрын
I will stay with jotai
@StephanHoyer2 сағат бұрын
Again a problem you would not have if you would not diff a change twice in react. Just drop setState and redraw the whole thing.
@lonewolf36s4 сағат бұрын
pretty much everything i have is in redux. So many slices... Maybe in future on a new project i'd try this. It looks REALLY clean.
@deezydoezeet4 минут бұрын
sticking with zustand
@notarealperson970929 минут бұрын
Hypermedia as the engine of application state (HATEOAS)
@Ked_gaming47 минут бұрын
99% of the time you dont need a store, dont thank me
@frusen_sol33 минут бұрын
*preact-signals* my favorite one
@ArcticPrimal2 сағат бұрын
Just waiting for a state manager to become a js framework similar to how react router
@Mavesound7 минут бұрын
I gave up on state management since server components
@snowoficeСағат бұрын
Zustand sounds German (translates to status) and as such you should propably pronounce it more like tsustant.
@nathanaelbennett82865 сағат бұрын
state management considered harmful
@alihassn41122 сағат бұрын
WTF, every day there's a new state manager? What a crap to be a JS developer, long live Laravel!
@twilightdev4 сағат бұрын
stores popping out more often than js frameworks (well technically they are js frameworks too but still)
@rickdg2 сағат бұрын
reset the counter
@kennyPAGC2 сағат бұрын
As a django dev who embraced nojs philosophy years ago I am SO happy when I see videos like this.
@arpitbharti62452 сағат бұрын
nope zustand has all these features
@MirkoVukusic3 сағат бұрын
I'm on Legend State and don't see a reason o change
@lqhuy2 сағат бұрын
Look at Legend State
@johnlombardo4 сағат бұрын
I usually enjoy your videos as a background task but this had my full attention. Saved to watch again 👍🏼
@nChauhan915 сағат бұрын
Been using it for 3 years in a project, it's good for things but I wouldn't recommend it for general state management
@graficandorealidades75615 сағат бұрын
Thanks, you saved me 22 minutes of my life
@t3dotgg5 сағат бұрын
xstate-store is not 3 years old and is very different from traditional xstate
@nChauhan914 сағат бұрын
@@t3dotgg my bad, I thought this was just xState library that David created.
@jatiquep55434 сағат бұрын
@@t3dotgg he should have called it another name as a new library
@johnlombardo3 сағат бұрын
@@jatiquep5543 What, like XStore? Or my suggestion, Store Manager For People That Like How XState Works.
@SogMosee4 минут бұрын
I stopped watching this dude years ago due to the undiagnosed cluster b narcissism but looks like he's calmed down a bit
@KopoLPedov4 сағат бұрын
reatom is the best, but not hyped
@jotaroisdarius19184 сағат бұрын
DAMN IT THEO, IT'S TSOO-shtahnt NOT ZASTEND cool video tho 👍
@random-i2sСағат бұрын
Why is the FE world like this? Why do we need a new framework, state manager, editor, runtime, additional languages on top with build steps nonsense every single day? In the backend world languages has left these trivialities behind and for example go, c#, php, java communities are not into this at all . They focus on the things that matter which means we have a stable environment with mature tooling
@zenpoolСағат бұрын
if it looks like zustand why bother 🤷🏼
@fazamaza8012 сағат бұрын
Guys just literally reinvent redux toolkit, LMAO
@ArianvanPuttenСағат бұрын
Please don't pronounce Zustand like that it hurts my soul The u is pronounced as o in the word "zoo" The Z is pronounced as "ts" Ts oo stand
@alexey9796Сағат бұрын
nah
@alek2825 сағат бұрын
First, go Theo
@mindblower1132 сағат бұрын
I really liked Redux Toolkit.
@diadetediotedio6918Сағат бұрын
Would not it be clearer in react if you just made an utility, like: function effect({ deps, run, cleanup }: { deps: any[], run: () -> void, cleanup: () -> void }) { useEffect(() => { run(); return cleanup; }, deps); } that you can then use like this: effect({ deps: [slug], run: () => { ... }, cleanup: () => { ... } }) I feel like at least some of the problems with useEffect is that it is too much quirky to use, so wrapping it maybe provide some benefits.
@requindr59 минут бұрын
I feel like you shouldn’t do a wrapper that doesn’t provide benefits, at best it will only confuse other devs
@diadetediotedio691814 минут бұрын
@@requindr My whole point is that it does provide benefits (semantic ones), lol. And if someone gets confused by this I don't think this person is a programmer, those are literally plain english words with well defined meanings in react, I'm not presenting a theorem proof in modal logic.