I might have a new favorite state manager...

  Рет қаралды 12,702

Theo - t3․gg

Theo - t3․gg

Күн бұрын

Пікірлер: 97
@tinrab
@tinrab 4 сағат бұрын
Just one more state manager guys and all will be good.
@lovebes
@lovebes 4 сағат бұрын
bruh just one more state mamager bruh I promise bruh this is the last one bruh
@twisterrjl
@twisterrjl 3 сағат бұрын
just one more, c'mon
@ArcticPrimal
@ArcticPrimal 2 сағат бұрын
Just waiting for a state manager to become a framework similar to how react router became a framework
@ChiragAgg5k
@ChiragAgg5k 5 сағат бұрын
zustand is always gonna be my go to
@spicepirate
@spicepirate 5 сағат бұрын
me too 👍
@philheathslegalteam
@philheathslegalteam Сағат бұрын
Jotai
@FusionHyperion
@FusionHyperion 22 минут бұрын
Pinia is great for vue
@trappedcat3615
@trappedcat3615 4 сағат бұрын
Why don't we call state managers governors?
@johnlombardo
@johnlombardo 4 сағат бұрын
State Comptroller?
@Jenkkimie
@Jenkkimie Сағат бұрын
Mayors. Most countries don't have governors separately but every country has mayors.
@guxit
@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.
@someDudeOnYtb
@someDudeOnYtb 41 минут бұрын
Recently discovered it working on a react native project and I think I will start using it in everything,react or vue or vanilla
@Dimonina
@Dimonina 4 сағат бұрын
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.
@menmikimen
@menmikimen 3 сағат бұрын
True, angular is really good in this regard. And now, for non-complex problems, it is possible to use signals instead. ❤
@tvujtatata
@tvujtatata 3 сағат бұрын
Better than being forced to used a single opinionated option or writing own. What have you done for the community?
@ivanmaglica264
@ivanmaglica264 2 сағат бұрын
I love injectable services in Angular
@adityaanuragi6916
@adityaanuragi6916 23 минут бұрын
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
@rajikkali2381
@rajikkali2381 4 сағат бұрын
Pinia ❤
@aghileslounis
@aghileslounis 3 сағат бұрын
lol
@rahu1gg
@rahu1gg 4 сағат бұрын
For a 4 mins read blog post it took 22 mins youtube video
@ThinkleTink
@ThinkleTink 3 сағат бұрын
At this point I think he does it to ensure the ragebait posts and clicks
@witchmorrow
@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
@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.
@javierflores09
@javierflores09 48 минут бұрын
Brother just read the article if you don't like the commentary, because that's like the whole point of this channel
@ThinkleTink
@ThinkleTink 30 минут бұрын
@javierflores09 K
@abui6914
@abui6914 4 сағат бұрын
Trust me guys react is one state manager away from perfection
@oddfeeling7956
@oddfeeling7956 Сағат бұрын
I don't know why I find this funny
@offlercrocgod
@offlercrocgod Сағат бұрын
As a few of the comments already mentioned just use signals, legend-state in React and the other frameworks have signals built-in
@Infinitay
@Infinitay 3 сағат бұрын
Are state managers the new front end framework meta?
@salva-dev
@salva-dev 4 сағат бұрын
Very interesting... Thanks. I will try it. You should also try nanostores, from Evil Martians, super lightweight and framework independent store.
@guillemgarcia3630
@guillemgarcia3630 2 сағат бұрын
man all of this is so easy in solidjs, this vid makes me appreciate it even more
@luka1790
@luka1790 17 минут бұрын
This
@jatiquep5543
@jatiquep5543 4 сағат бұрын
I will never leave zustand ❤❤❤
@UliTroyo
@UliTroyo 4 сағат бұрын
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.
@ldlework
@ldlework 3 сағат бұрын
Zustand is the last state manager needed. Simple as.
@philheathslegalteam
@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
@ArcticPrimal Сағат бұрын
The author is right it's zustand with redux toolkit features to overcome zustand's shortcomings
@buthow900
@buthow900 12 минут бұрын
Have you seen ombistac zedux?
@orlvni
@orlvni 4 сағат бұрын
react context + our own state machine for life
@markosunbro2732
@markosunbro2732 3 сағат бұрын
They will do everything to not use signals )))
@termorey
@termorey 4 сағат бұрын
Effector (and ecosystem) is the best for me in most cases
@alec-dora
@alec-dora 2 сағат бұрын
Which mac are you using?
@toutpt
@toutpt 3 сағат бұрын
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.
@St0rMsk
@St0rMsk 2 сағат бұрын
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
@ronny584
@ronny584 3 сағат бұрын
Theo has bless us with a 23 minutes video and not 3hrs, thank goog.
@FusionHyperion
@FusionHyperion 17 минут бұрын
TLDR: Basically Pinia
@returnZeroo
@returnZeroo 3 сағат бұрын
I will stay with jotai
@StephanHoyer
@StephanHoyer 2 сағат бұрын
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.
@lonewolf36s
@lonewolf36s 4 сағат бұрын
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.
@deezydoezeet
@deezydoezeet 4 минут бұрын
sticking with zustand
@notarealperson9709
@notarealperson9709 29 минут бұрын
Hypermedia as the engine of application state (HATEOAS)
@Ked_gaming
@Ked_gaming 47 минут бұрын
99% of the time you dont need a store, dont thank me
@frusen_sol
@frusen_sol 33 минут бұрын
*preact-signals* my favorite one
@ArcticPrimal
@ArcticPrimal 2 сағат бұрын
Just waiting for a state manager to become a js framework similar to how react router
@Mavesound
@Mavesound 7 минут бұрын
I gave up on state management since server components
@snowofice
@snowofice Сағат бұрын
Zustand sounds German (translates to status) and as such you should propably pronounce it more like tsustant.
@nathanaelbennett8286
@nathanaelbennett8286 5 сағат бұрын
state management considered harmful
@alihassn4112
@alihassn4112 2 сағат бұрын
WTF, every day there's a new state manager? What a crap to be a JS developer, long live Laravel!
@twilightdev
@twilightdev 4 сағат бұрын
stores popping out more often than js frameworks (well technically they are js frameworks too but still)
@rickdg
@rickdg 2 сағат бұрын
reset the counter
@kennyPAGC
@kennyPAGC 2 сағат бұрын
As a django dev who embraced nojs philosophy years ago I am SO happy when I see videos like this.
@arpitbharti6245
@arpitbharti6245 2 сағат бұрын
nope zustand has all these features
@MirkoVukusic
@MirkoVukusic 3 сағат бұрын
I'm on Legend State and don't see a reason o change
@lqhuy
@lqhuy 2 сағат бұрын
Look at Legend State
@johnlombardo
@johnlombardo 4 сағат бұрын
I usually enjoy your videos as a background task but this had my full attention. Saved to watch again 👍🏼
@nChauhan91
@nChauhan91 5 сағат бұрын
Been using it for 3 years in a project, it's good for things but I wouldn't recommend it for general state management
@graficandorealidades7561
@graficandorealidades7561 5 сағат бұрын
Thanks, you saved me 22 minutes of my life
@t3dotgg
@t3dotgg 5 сағат бұрын
xstate-store is not 3 years old and is very different from traditional xstate
@nChauhan91
@nChauhan91 4 сағат бұрын
@@t3dotgg my bad, I thought this was just xState library that David created.
@jatiquep5543
@jatiquep5543 4 сағат бұрын
​@@t3dotgg he should have called it another name as a new library
@johnlombardo
@johnlombardo 3 сағат бұрын
@@jatiquep5543 What, like XStore? Or my suggestion, Store Manager For People That Like How XState Works.
@SogMosee
@SogMosee 4 минут бұрын
I stopped watching this dude years ago due to the undiagnosed cluster b narcissism but looks like he's calmed down a bit
@KopoLPedov
@KopoLPedov 4 сағат бұрын
reatom is the best, but not hyped
@jotaroisdarius1918
@jotaroisdarius1918 4 сағат бұрын
DAMN IT THEO, IT'S TSOO-shtahnt NOT ZASTEND cool video tho 👍
@random-i2s
@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
@zenpool Сағат бұрын
if it looks like zustand why bother 🤷🏼
@fazamaza801
@fazamaza801 2 сағат бұрын
Guys just literally reinvent redux toolkit, LMAO
@ArianvanPutten
@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
@alexey9796 Сағат бұрын
nah
@alek282
@alek282 5 сағат бұрын
First, go Theo
@mindblower113
@mindblower113 2 сағат бұрын
I really liked Redux Toolkit.
@diadetediotedio6918
@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.
@requindr
@requindr 59 минут бұрын
I feel like you shouldn’t do a wrapper that doesn’t provide benefits, at best it will only confuse other devs
@diadetediotedio6918
@diadetediotedio6918 14 минут бұрын
@@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.
This magic hack makes Next.js possible
28:02
Theo - t3․gg
Рет қаралды 36 М.
How did we get here?
1:26:00
Theo - t3․gg
Рет қаралды 37 М.
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН
PirateSoftware is right, this needs to stop
15:14
Theo - t3․gg
Рет қаралды 302 М.
This new Tailwind feature is scarier than I thought
29:13
Theo - t3․gg
Рет қаралды 52 М.
Zed Text Editor. A VSCode alternative?
15:51
Infralovers GmbH
Рет қаралды 9 М.
BREAKING: OpenAI's new O3 model changes everything
12:11
Theo - t3․gg
Рет қаралды 157 М.
Astro stole my favorite parts of Next (and I'm hyped)
32:30
Theo - t3․gg
Рет қаралды 42 М.
React Router V7 just dropped, here's why you should care
29:11
Theo - t3․gg
Рет қаралды 40 М.
Unintuitive behaviors of React Hooks
16:26
Theo - t3․gg
Рет қаралды 25 М.
How did this not exist before???
9:29
Theo - t3․gg
Рет қаралды 41 М.
Tailwind broke, but it's not their fault...
10:14
Theo - t3․gg
Рет қаралды 63 М.
React 19 is finally out!
28:01
Theo - t3․gg
Рет қаралды 67 М.
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН