Why Everyone Loves Zustand

Поделиться
HTML-код
  • Опубликовано: 20 ноя 2024

Комментарии • 397

  • @OpticIlluzhion
    @OpticIlluzhion 2 месяца назад +197

    My mental Zustand worsened with every time you said the word

    • @cubimon8219
      @cubimon8219 2 месяца назад +14

      Das sind ja Zustände hier

    • @marcialabrahantes3369
      @marcialabrahantes3369 2 дня назад

      that's how language works unfortunately, assuming you respect/like the speaker.
      Shoosh-tand!

  • @samuelgunter
    @samuelgunter 2 месяца назад +367

    i love it because it's not redux

    • @devxsadik
      @devxsadik 2 месяца назад +1

      Real 😂😂😂

    • @jatiquep5543
      @jatiquep5543 2 месяца назад +2

      I hate redux😅😅😅

    • @sfishy5540
      @sfishy5540 2 месяца назад

      This guy gets it

    • @a1x5h04
      @a1x5h04 2 месяца назад

      Nailed it!

    • @farhadjaman5580
      @farhadjaman5580 2 месяца назад

      Why hate it so much?😊

  • @TheBadFred
    @TheBadFred 2 месяца назад +121

    Zustand also means "state", which fits better IMHO.

    • @FyyMyy
      @FyyMyy 2 месяца назад +9

      Zustimmung!

    • @excalibur2417
      @excalibur2417 2 месяца назад +2

      Daumen hoch!

    • @nopenope1
      @nopenope1 2 месяца назад +3

      ah, there it is, the German muss jetzt kommentieren-drang ^^

    • @よしくん-k4n
      @よしくん-k4n 2 месяца назад +1

      Haha it should be cuz another state library from the same author is named Jotai, which means state in Japanese.

    • @panzerdriver
      @panzerdriver 2 месяца назад

      You know what's cool, redux devtools

  • @snotvlek4721
    @snotvlek4721 2 месяца назад +194

    0:45 American moment

    • @SubwayToSally90
      @SubwayToSally90 2 месяца назад +16

      Very american, yes. We also could start calling Theo "See Oh" and just "dont care" :D

    • @belphegorPrime
      @belphegorPrime 2 месяца назад +2

      @@SubwayToSally90 SEO

    • @pequod4557
      @pequod4557 2 месяца назад +2

      ZOOSHTANT

    • @bomjism
      @bomjism 2 месяца назад +12

      more like typical behaviour of any native English speaker who's never had to learn another language

    • @qazyhn94
      @qazyhn94 2 месяца назад +6

      I think it means state in English not condition :) source living in Germany

  • @adityaanuragi6916
    @adityaanuragi6916 2 месяца назад +213

    It's pronounced zustand not zustand

  • @JLarky
    @JLarky 2 месяца назад +105

    I like that the poll doesn't even have the right way to pronounce it 😂

    • @BurgerBurglar8964
      @BurgerBurglar8964 2 месяца назад +4

      If it's written in Murican I'm pronuncing it in Murican

    • @joschkazimdars
      @joschkazimdars 2 месяца назад +5

      zuh-shtand would be correct

    • @terra_creeper
      @terra_creeper 2 месяца назад +10

      ​@@joschkazimdarsGiven that "z" is usually pronounced like in "buzzing" and "shtand" looks like "stand", i'd write the pronounciation as "tsoo-shtund".

    • @joschkazimdars
      @joschkazimdars 2 месяца назад

      @@terra_creeper actually, trying to describe a pronounciation with english letters seems impossible. They have different sounds for the same letters all the time.

    • @terra_creeper
      @terra_creeper 2 месяца назад +3

      @@joschkazimdars I don't think it's impossible, just very hard. Single letters don't have a consistent pronounciation, but most letter combinations do. You just have to add letters until there is no ambiguity anymore.

  • @Monstermash355
    @Monstermash355 2 месяца назад +40

    Because it's just so simple to setup and use. However its simplicity comes with a cost, it's unopinionated therefore can lead to inconsistencies.
    The key thing to remember when using zustand is to never NOT use a selector, otherwise you'll subscribe to your whole store and trigger absurd amount of rerenders where you call it without one. (const foo = useStore((state) => state.foo))
    Also, not using the slice pattern can lead to headaches when one store needs something from another.

    • @PraiseYeezus
      @PraiseYeezus 2 месяца назад +1

      lol honestly, using a 'getter' is such a basic code pattern i'm not sure that fits as being 'opinionated' or coming with a 'cost'

    • @firasrabaia
      @firasrabaia 2 месяца назад +1

      @@PraiseYeezus
      He meant having the ability tp cause problems when having conplex use cases

    • @martinlesko1521
      @martinlesko1521 2 месяца назад

      Wrong, Zustand does have the slices pattern as well, read the docs next time: zustand.docs.pmnd.rs/guides/slices-pattern

    • @Monstermash355
      @Monstermash355 2 месяца назад +1

      @@PraiseYeezus Well, what can happen is one guy can write 10 stores and another will write 10 slices which is inconsistant, just one example

    • @emanuelcepoi
      @emanuelcepoi 2 месяца назад +11

      Agree, people don't understand how powerul Redux Toolkit + RTK Query is and how nice it is to use it due to its opinionated nature. Theo just has a way of picking the worst technologies and pretend they make sense. I'm at a point where I just know that if Theo talks about something I gotta avoid it.

  • @gben82
    @gben82 2 месяца назад +37

    In Italian and German you pronounce the "z" (zed) like "tz"--just like the "z"s in pizza--it's not that difficult. Hence: "Tzoo-shtand"

    • @officialdinesh
      @officialdinesh 2 месяца назад +2

      Yeah and I don't think Google AI voice is better as it feels like she said Zoo-stand.

    • @Novalis1504
      @Novalis1504 2 месяца назад +2

      And the „a“ in English is often times pronounced like an „ä“ in German or an „æ“ in danish. The correct „a“ for „Zustand“ would be the first a in „arbitrary“ :)

    • @deepjaysoul
      @deepjaysoul 2 месяца назад +5

      I think “Tzoo-shtunt” would be the closest…

    • @edism
      @edism 2 месяца назад +1

      Bro, how do expect him to say that when he can't even say mirror? Murrrruuur

    • @NoahSteckley
      @NoahSteckley 2 месяца назад

      Not relevant for speaking English

  • @bkschatzki
    @bkschatzki 2 месяца назад +15

    A lot of people saying that Zustand is like Redux Toolkit but less extra. But sometimes even Zustand isn't needed. Jotai is unbelievable when you just want to have little bits of state that you can grab from anywhere. They're different tools.

    • @PhilipAlexanderHassialis
      @PhilipAlexanderHassialis 2 месяца назад +2

      Exactly. It all depends on the case scenario. For micro-states, Jotai is an excellent tool. If on the other hand you have cases where you need big complex states due to the application's needs then Zustand is an excellent choice - and, surprisingly, it works really well with NextJS (unlike Redux Toolkit - at least in the current incarnation).

  • @NoiseLeGGa
    @NoiseLeGGa 2 месяца назад +13

    Ok, let's call him Otto for the rest of our lifes.

  • @alcar32sharif
    @alcar32sharif 2 месяца назад +24

    "Meine Fresse was für ein 'zustand' hier auf diesem Kanal" 😂

    • @MichaelReich
      @MichaelReich 2 месяца назад +1

      Nicht mal richtig ausprechen kann er es haha

    • @LC12345
      @LC12345 2 месяца назад

      @@MichaelReichNo offense but German pronunciation isn’t intuitive at all. And I speak enough German to make myself understandable.

    • @cobrasys
      @cobrasys 2 месяца назад +1

      @@LC12345 German pronunciation might not be intuitive, but at least it's consistent, which is way, way, _way_ more than we can say about English. I don't speak German at all, I barely know a few words and sentences, but I immediately knew how to pronounce it just by looking at the word.

    • @LC12345
      @LC12345 2 месяца назад

      @@cobrasys You’re lying at one end here. Either you know German or you don’t know that a beginning Z is pronounced “ts” and that this word’s “st” is pronounced “scht” because it’s the beginning of a combined word. Stop playing.

    • @mickdavies5647
      @mickdavies5647 2 месяца назад +2

      ​@LC12345 what a weird false dichotomy. You're suggesting that it's impossible to know a few words or sounds in a language without being able to communicate in it. Most people know and can correctly say the name 'Einstein' which requires correctly handling the 'ei' German dipthong

  • @prerit714
    @prerit714 2 месяца назад +3

    At this I kind of don't care what state management library is used in a project, just understand the observer pattern (or redux in UI) once and every other library is just a syntax sugar.

  • @rajikkali2381
    @rajikkali2381 2 месяца назад +9

    Because its the closest thing to Pinia for React

    • @alexmachin1785
      @alexmachin1785 2 месяца назад

      Yeah that's I was thinking 😅 It's the closest thing I've find so far.

  • @IronMaidzen
    @IronMaidzen 2 месяца назад +6

    and thats why, even though I'm German, i give my projects english names. 😂

  • @notker88
    @notker88 2 месяца назад +5

    You should not judge tools based on extremely basic examples, but more if they can support also support complex fully modular apps. I would rather use a little too heavy tool for small apps and know I have no trouble when it grows and needs to be modulaized, then a lightweight tool where I know I might get in trouble at some point and have to refactor the whole app. Most engineers and companies don't do that research, which costs them sooo much money. Research also needs experience of course, you cannot do research when you never built large scale application, because you so not know what to research and what is actually important.

  • @vetrivendhan6122
    @vetrivendhan6122 2 месяца назад +4

    Why is everyone falling in the same trap. According to the functional programming we don't have to mix data and functions. Use pure atoms from Jotai and pass it to the custom hooks/context. State managers should only store the state and should not modify by itself. This will complicate the React app more than you think. Please experiment with these guys. Peace out.❤

  • @TheScottShepard
    @TheScottShepard 2 месяца назад +4

    “It’s interesting how getting used to the React way lead you to overlook simpler solutions in plain JS to the same problem.” I couldn’t say it better myself regarding all of these redux-like solutions. 99.9% of you don’t need it.

  • @xReDxTuRtLeZx
    @xReDxTuRtLeZx 2 месяца назад

    i have been around since pre mustache theo, but post-needs a haircut- theo, joined as someone brand new to web dev, have enjoyed my time with my website since! and the discord has grown to be so large and is still such a great place to have discussions and help. time flies

  • @brennenrocks
    @brennenrocks 2 месяца назад +7

    I would love to see your thoughts on Jotai and why you might use one vs the other

  • @TheLazyCat000
    @TheLazyCat000 2 месяца назад +10

    btw zustand is german and is pronounced tsooshtund

  • @ngideo
    @ngideo 2 месяца назад

    I like the tip on using a context for a zustand store and not treating it like a global store. I think I'm going to try that out.

  • @headexplode2741
    @headexplode2741 2 месяца назад +3

    But still 99% of companies still ask Redux experience in resume...😢

    • @vetrivendhan6122
      @vetrivendhan6122 2 месяца назад +1

      The managers don't need to work on this shit. They just want someone to maintain all this shit that he/she wrote. 😅

  • @blenderpanzi
    @blenderpanzi 2 месяца назад +4

    Tsoo-shtunned. German for state.

  • @warin2176
    @warin2176 2 месяца назад +1

    I think use-context-selector solves the problem of useContext causing unnecessary rerender

  • @guxit
    @guxit 2 месяца назад +2

    I like Valtio the most because of it's simplicity. Also has selective rendering and ends up with less code than Zustand.

  • @4w0ken
    @4w0ken 2 месяца назад +1

    Zustand stand, zu Stand stand, und als es zu Stand zu stand, stand es zu.

  • @ggascoigne
    @ggascoigne 2 месяца назад

    The ability to access the store from outside of react is super handy when you want your fetch-like functions (i.e. the functions you end out passing down to react-query) to have access to things like auth or token data, and you want to avoid huge amounts of prop-drilling.

  • @mohammadyahyaq
    @mohammadyahyaq 2 месяца назад +15

    Redux toolkit + rtk query are so underrated 😢

    • @kissmyussr1993
      @kissmyussr1993 2 месяца назад +1

      Nope, redux is a pain even with them

    • @ShafickCure
      @ShafickCure 2 месяца назад

      It's ok. The boilerplate is ridiculous.

    • @mohammadyahyaq
      @mohammadyahyaq 2 месяца назад +2

      @@ShafickCure the boilerplate only on the setup
      And toolkit gives you hooks for your api's automatically (unlike react query where you need to write them yourself).
      Also it handels caching and invalidation automatically
      I tried both redux toolkit and react query and I think toolkit has less boilerplate than react query 🙃
      Although toolkit has some missing features like infinite scroll
      (I've never used zustand though, so I can't compare it)

    • @martinlesko1521
      @martinlesko1521 2 месяца назад

      @@mohammadyahyaq React Query isnt a global store like Redux, its an async state manager.

    • @mohammadyahyaq
      @mohammadyahyaq 2 месяца назад +2

      @@ShafickCure the biggest weakness in toolkit in my opinion is the documentation
      Probably that's why people don't use it 😅

  • @AlwynWymeersch
    @AlwynWymeersch 2 месяца назад

    I might just rewite my entire project from redux to zustand just because of the hoops I had to jump / hacks I had to implement Agora. Great solution!

  • @peppergrayxyz
    @peppergrayxyz 2 месяца назад +4

    Is this why countries and many cities have English names in addition to how they are pronounced in their native language, because English speakers simply don't bother?

    • @Leonhart_93
      @Leonhart_93 2 месяца назад

      Native english speakers are some of the most inept at learning a second language and wrapping their heads around different pronunciations, because they don't have that much need to learn a 2nd language.

    • @mickdavies5647
      @mickdavies5647 2 месяца назад

      A lot of English people can't even speak English correctly. I have a lot of respect for all the people in countries like Poland that have a very complex pronunciation system of their own and can still speak English better than many native Engliah speakers

    • @culturehyena
      @culturehyena 2 месяца назад

      That one’s colonialism

  • @MaxOut931
    @MaxOut931 2 месяца назад +30

    I’m a German and I love how you pronounce “Zustand” - I’ll start a petition to change the official German pronounciation into “sust and”

    • @bkschatzki
      @bkschatzki 2 месяца назад +3

      You use the "s" to spell the /z/ sound. Identity checks out lol.

    • @blenderpanzi
      @blenderpanzi 2 месяца назад +3

      I'd say tsoo-shtunned.

  • @cathadan
    @cathadan 2 месяца назад

    One day the world will discover react-tracked and truly appreciate it. For now it's just a library that came before its time, and zustand gets all the love.

  • @Zepi2509
    @Zepi2509 2 месяца назад +1

    Love your content Theo. But i‘m German and 1:52 wasn‘t that far away 😂 but it is always funny to see amaricans try to pronounce german words ❤

  • @ShaneGoodson
    @ShaneGoodson 2 месяца назад +2

    I pretty much wrote an implementation like zustand when react contexts came out because we werent allowed to use mobx and i hated redux that much.

  • @eter_inquirer
    @eter_inquirer 2 месяца назад

    Its like you read my mind w these videos

  • @VKD007
    @VKD007 2 месяца назад

    I added this in my orgs main FE product and this going fun. Its so easy and fun to use.

  • @bzbetty1
    @bzbetty1 2 месяца назад +3

    XState is much easier to pronounce

  • @kabukitheater9046
    @kabukitheater9046 2 месяца назад +3

    i heard zustand is pronounced 'not-redux'

  • @fu886
    @fu886 2 месяца назад

    Good to know Theo came down to use object oriented programming

  • @dellavita3463
    @dellavita3463 2 месяца назад +3

    I like nanostore more, it simpler and framework agnostic.

  • @notker88
    @notker88 2 месяца назад +2

    Actually there is only little difference of the code in the components with Zustand vs RTK. Yes you write more code with RTK outside of the components, but you also get working devtools. With Zustand the redux devtools time machine for example does not work and it does not seem that this will be fixed anytime soon since Zustand has no control over that repo.

    • @zayne-sarutobi
      @zayne-sarutobi 2 месяца назад

      It's works for me tho? Why is that?👀

    • @notker88
      @notker88 2 месяца назад

      @@zayne-sarutobi Time machine works for you? I tested it a few weeks ago and it did not work. Issue is also still open in GitHub. Redux-devtools 1369. You can go forward and backwards in redux devtools with Zustand with the forward and backward buttons? Unlikely

    • @notker88
      @notker88 2 месяца назад

      @@zayne-sarutobi sorry it is the Trace that is not working. Also confirmed it with the maintainer in Discord. They cannot do much there.

  • @mr.togrul--9383
    @mr.togrul--9383 2 месяца назад +2

    Lmao google translate scene killed me

  • @TonyGustafsson
    @TonyGustafsson 2 месяца назад

    Didn't knew it could do granular updates/rerenders... makes me wanna try it out even more.

  • @Lemmy4555
    @Lemmy4555 2 месяца назад +4

    State management is EASY if you get/set in an imperative way and use reactivity when needed only to read and show in the ui.
    As a FE developer that had the opportunity to work with all major frameworks (AngularJS, Angular 2+, Vue, React and Svelte) i can tell that React and Angular communities really do state management in the most over engineered way. stop putting "middlewares"/"asyncThunks" in the damn global store.
    Just write a bunch a functions that you call from the components and those functions will just get/state from the stores. It works great in case of SPA, since you can put stuff in modules.
    In case you need SSR just use whatever solution the framework provide to have per session context or the context api directly and pass this context to the same functions, the context is what will keep the reference to the global stores.

  • @thepetesmith
    @thepetesmith 2 месяца назад

    We have one opinionated way to enforce consistency. Every action like actionSetFoo is prefixed with the word action. This way everyone isn’t coming up with their own naming.

  • @rafcins
    @rafcins 2 месяца назад

    It's a fantastic library. It's incredible.

  • @beepdotboop
    @beepdotboop 2 месяца назад

    I started watching you during the 'needs a haircut' phase..the porno mustache took me a while to get used to

  • @sinanyilmaz9887
    @sinanyilmaz9887 2 месяца назад +2

    What I've Learned in 7 Years as a Developer (JavaScript/React/Python) Use as few packages as possible. Keep things simple. Need shared state? Forget Redux or Zustand-learn React’s Context API. Is your app complex? Don’t overcomplicate it. My frontend team spent two weeks refining our internal guidelines, and now our structure is straightforward and easy to maintain-without touching any state management libraries. Start thinking for yourself. Need a package to check if an array is empty? Write your own code and tests. Sure, a package installs in 10 seconds, but maintaining it (and the others) is a time sink. When one package works with Node 20 and another doesn’t, guess what-you’re stuck maintaining even more. Oh and you also have to do that in your 20 micro applications. Stop making things harder for yourself. The JavaScript ecosystem already has enough mess.

    • @zayne-sarutobi
      @zayne-sarutobi 2 месяца назад

      Context API would've been great imho, expect it isn't performant when used as anything beyond a simple transport mechanism

    • @programmerjowo
      @programmerjowo 2 месяца назад +1

      Fact. Many developer use too many library just to overcomplicate their code

  • @shubhampawar7475
    @shubhampawar7475 2 месяца назад

    You can potentially optimise the useContext hook which will only trigger re-renders for values that are changed. I think Jack Harrington has already made a video on this, something like "Moving fast with react context"

  • @everythingisfine9988
    @everythingisfine9988 2 месяца назад +1

    Moral of the story. When working with React use the *Fewest* amount of React features possible 🤕

  • @abdelalikabou9197
    @abdelalikabou9197 2 месяца назад

    I love it. and I use it always on my projects. Thanks Zustand to save me from Redux hell 😅

  • @MDOY79
    @MDOY79 2 месяца назад +1

    I don't want all my business logic in functional components so I like the saga middleware option to interact with redux. Is there something similar in Zustand?

  • @emreq9124
    @emreq9124 2 месяца назад

    bro, react never says that use Context for state management. It is usually for props drilling to children. It hasnt been like a performent state manager at all. But, in most cases, React can handle such rerenders with efficient way. But the library still need some performant way inside. Maybe next versions have optimized Contexts usages with selectors

  • @Wakkyguy
    @Wakkyguy 2 месяца назад +16

    What about Jotai?

    • @loudboomboom
      @loudboomboom 2 месяца назад +2

      Jotai ftw

    • @nithinbhandari3075
      @nithinbhandari3075 2 месяца назад +2

      I use jotai, it just simple to setup, using in production website, it works.

    • @vetrivendhan6122
      @vetrivendhan6122 2 месяца назад +1

      The video creater may not use Jotai. I use Jotai for state management and custom hooks to update it. Everything works great. ❤

  • @Clickworker101
    @Clickworker101 2 месяца назад

    Great to have an American say German words.as always Trying is good enough. Batteriezustand
    Zustand dee Korvette

  • @realitydesigners
    @realitydesigners 2 месяца назад

    wow learned alot in this one

  • @brucearmstrong5536
    @brucearmstrong5536 Месяц назад

    Was using it for my first react project, clean and simpler than redux

  • @_aNeaire
    @_aNeaire 2 месяца назад

    did i just learned, React best practices in a ZUSTAND video

  • @tichopad
    @tichopad 2 месяца назад

    Cool vid! Using children reference in the useMemo dependency arr is going to re-create the memoized instance due to JSX always returning a new object for children props in React. Also, driving re-renders off of the result of a selector function is not unique to Zustand - Redux does the same thing.

  • @captainlennysub
    @captainlennysub 2 месяца назад +1

    Redux is the most ridiculous thing I’ve ever seen. It complicates things to unnecessary degree. I remember spending hours trying to understand WHY they do things the way they do it, but their documentation is one of the worst out there. It did slightly get better when Toolkit came out, but seriously too much stress and abstraction hidden in complicated documentation.
    Zustand saved my life.

  • @LeFlamel
    @LeFlamel 2 месяца назад +7

    30 min confirmation that React is a footgun.

  • @AfyaTelemed
    @AfyaTelemed 2 месяца назад +1

    Am using ably for my chat.. what do you recommend?

  • @khuramshahzad9089
    @khuramshahzad9089 Месяц назад +1

    Recoil is great too ...

  • @mirko_lon
    @mirko_lon 2 месяца назад +1

    Theo pls if you like zustand you need to try Effector, we use at the moment effector and migrate from redux. I'm not joking but it's better than zustand and TS working more correct

  • @TerriMcGray-p3o
    @TerriMcGray-p3o 2 месяца назад

    Susana Walks

  • @shreyanshjain9479
    @shreyanshjain9479 2 месяца назад +1

    Missing zustand in angular

  • @shark950621
    @shark950621 2 месяца назад +1

    Why should you never look up the source code (10:07) ? I heard it's actually very much the opposite for understanding how things works.

  • @Diego_Cabrera
    @Diego_Cabrera 2 месяца назад +1

    I found Jotai first so I never zustand a try. I might tho, it seems promising

  • @juxuanu
    @juxuanu 2 месяца назад

    Preact signals is a good alternative to all this.

  • @victor95pc
    @victor95pc 2 месяца назад +1

    I migrated from Ably to Soketi in a large app, definitely worthy, Ably is terrible

  • @thepetesmith
    @thepetesmith 2 месяца назад

    I hated React until I started using Zustand. It’s perfect.

  • @trustonyemachi8098
    @trustonyemachi8098 2 месяца назад

    Zustand is my babe, so much love

  • @jaykay4211
    @jaykay4211 Месяц назад

    That part about children prop needing to use memoizisation - Was the issue that when the context updated state it would re-render the children? Children was an element not a component so it wouldn't re-render it anyway which we did see wasn't the issue. Just wanted to confirm I'm not missing something in my understanding of re-renders.
    React only re-renders all non memoized children components when state changes not elements.

  • @rex_melynas
    @rex_melynas 2 месяца назад

    I like zustand, what i don't like are some of the "best practices" of it.

  • @grugbrain
    @grugbrain 2 месяца назад

    oh man that blush

  • @Vedariy
    @Vedariy 17 дней назад

    Hey guys, can anybody explain me why does RecoilJS RIP? It was very excellent in case of async data and complex reacting on atom changing via selectors? Thanks. I found it more usable than Jotai (which is often called simplified version of RecoilJS). The separation in naming of 'Family' and 'select' was cool to build a kinda pre-architecture in 'state' terms. It was clear what is source of truth (atoms) and what are reflectors and reactive states. As well as where it was something like solid state - origin atoms and selectors, and where there are sets of many - families.

  • @tom.watkins
    @tom.watkins 2 месяца назад +5

    Zustand + Context API is great / makes the context API actually useable

    • @statuschannel8572
      @statuschannel8572 2 месяца назад +7

      I do the following setup
      Client state - zustand
      Server state - React Query aka Tanstack query
      is there any scenarios where i should use context API?

    • @tuananhdo1870
      @tuananhdo1870 2 месяца назад

      I use zustand only

    • @tuananhdo1870
      @tuananhdo1870 2 месяца назад

      @@statuschannel8572there is no

    • @maukomaunde7075
      @maukomaunde7075 2 месяца назад +2

      You don't need Context if you have Zustand, since the latter already tracks state

    • @arogueotaku
      @arogueotaku 2 месяца назад +3

      I don't understand why you would need context api if you have zustand? Can you please give a use case?

  • @timgreller
    @timgreller 2 месяца назад

    Das sind ja Zustände hier

  • @str.haysam
    @str.haysam Месяц назад +1

    all Germans crying

  • @hamit795
    @hamit795 2 месяца назад

    hi Theo, what's your opinion about MobX? would like to hear it

  • @xsh4n400
    @xsh4n400 2 месяца назад

    What would you recommend for realtime/websockets communication? Roll your own, or another service?

  • @marcushaaland4355
    @marcushaaland4355 28 дней назад

    Why use zustand for fetched data instead of tanstack query? 5:55
    And why would you fetch from Tanstack Query then put into provider instead of just using cache as global state? 6:55

  • @Imaginativeone_DF
    @Imaginativeone_DF 2 месяца назад

    "I'm never saying it that way. I don't care." LOLOL

  • @KarmCraft
    @KarmCraft 2 месяца назад

    Primagen going Sayan

  • @klausbjarne
    @klausbjarne 2 месяца назад

    ngl I prefer nanostores, works with other things such as Astro well as well - and it's easy AF to use

  • @jacobwwarner
    @jacobwwarner 2 месяца назад +1

    Ist es Deutsch? Edit: me thinking about the German pronounciation... *first 2 minutes using Google translate to pronounce it* me - I need to tell my coworker, the only other person I've met in 6 years whose learned German! This is too funny 😂

  • @evensteven5161
    @evensteven5161 2 месяца назад +2

    Nanostores ftw

  • @strangnet
    @strangnet 8 дней назад

    Oh, poor Tio.

  • @arcanernz
    @arcanernz 2 месяца назад +3

    Last time I tried a new state management library (recoil) I ended up tearing it out and replacing it with redux toolkit since recoil had a memory leak that crashed our app. So I’m weary of new libraries in which swapping it out is very laborious.

    • @kstash3564
      @kstash3564 2 месяца назад

      That's the same reason I'm sticking with RTK (for now at least) ...
      The design, planning, qa, and code quality of the Simpsons guy is far superior IMO.
      Jotai and Zustand just doesn't give me that professional feeling, if you know what i mean.

  • @blubblurb
    @blubblurb 2 месяца назад

    I use Valtio, I love it even more. It's even from the same dev(s?).

  • @rafaeldeleon3386
    @rafaeldeleon3386 Месяц назад

    say it right, then I'll watch the video

  • @mohtashimali581
    @mohtashimali581 2 месяца назад

    wow I was just discussing about this yesterday redux or zustand

  • @rugucloud
    @rugucloud 2 месяца назад

    zustand has some issues too. It doesn't reset state automatically when you move between pages. This can be inconvenient in certain use cases.

    • @fhucko
      @fhucko 2 месяца назад

      Maybe it just means that react is thinking you render same component? You can add wrapper component and render the full component with key based on url parameters.

    • @igrb
      @igrb 2 месяца назад +1

      if your store gets initialised together with a component you'll not have this problem

    • @zayne-sarutobi
      @zayne-sarutobi 2 месяца назад

      Create a scoped store solves this

  • @heidji
    @heidji 2 месяца назад

    It's just the best out there.

  • @Muphet
    @Muphet 2 месяца назад

    10 years ago when i started learning javascript, it was either react or vue for me. i hated redux so much i wen't vue way. zustand might be the only reason i would convert

  • @ilyadynin
    @ilyadynin 26 дней назад

    Tsuschtand

  • @ilyasanders4169
    @ilyasanders4169 Месяц назад

    use logic outside of react is a good approach, but mobx better allows to do that much simple and convenient way

  • @lasse-mo
    @lasse-mo 2 месяца назад

    As a german this is outrageous :D

  • @andreasherd913
    @andreasherd913 2 месяца назад

    meh Zustand has also too much boilerplate, been using effectorjs in many projects and nothing comes even close to it.

  • @sohanurrahman4346
    @sohanurrahman4346 2 месяца назад

    Still waiting for Zen Review!