Open
Description
Saying this is a piece of art is an understatement - this library is in the upper echelon with things like Zod, tRPC or even Typescript itself or linters. Thank you Poimandres, @dai-shi .
I ported my app to 5.0 (clean, without use-sync-external-store), and couldn't be happier of the results.
- in particular removing the cause of 'recursion' errors (if you know you know) has added stability to states and made the app faster and more resilient, and proved a great investment for UX!
I couldn't find a way to comment on the release itself, so here is to you!
🎊 Congrats to the Zustand team!!! 🥇
(and you can safely close this ticket :)
Activity
dai-shi commentedon Oct 14, 2024
So nice to hear that! (Let's keep this open for a while.)
sagarpanchal commentedon Oct 16, 2024
@dai-shi My comment could be off-topic.
Initially, I believed that zustand was React specific because the
create
returned a hook.But zustand is very good with vanilla JavaScript. The ability to create stores using
createStore
and use with React or just JavaScript and DOM is outstanding. I am used to a pattern where I create stateful services (like sdk) for front-end that would return store, actions and selectors and they could be paired with JS or React. Subscriptions also helped me avoid usinguseEffect
when UI is not a concern with the effect.lemondreamtobe commentedon Oct 25, 2024
absolutely agree!.I think zustand is the most perfect store library for React.~ I love it!
csvan commentedon Nov 7, 2024
Indeed, thank you so much for this lib <3
rg-lahcene commentedon Nov 18, 2024
I will screenshot this issue in my ADR for choosing zustand as state managment library :D
Sharqiewicz commentedon Nov 19, 2024
❤️
zxkws commentedon Dec 3, 2024
Me too!
radaco99 commentedon Jan 12, 2025
When I realized I needed state management for my app, my first thought was, "Oh no, here comes Redux again!" Back when I was learning React, Redux was pretty much the only option. But then I discovered Zustand—and wow, what a game-changer!
It's so simple that I was initially skeptical, but nope, it’s rock solid! I rarely leave comments or feedback, but this library is truly in a league of its own. Incredible work, team—well done! 👏
94Rabbit commentedon Feb 7, 2025
I also used zustand by chance and it was like a treasure 😂。
KrishnaPG commentedon Apr 10, 2025
Not sure if this is the right forum, but wondering:
pmndrs
has multiple state management libraries: valtio, zustand, koota and jotai.All seem to be pretty much targeting the same functionality.
Q:
It is really confusing to see multiple packages of same functionality under one brand. It would be great if they all either get merged into one or others get marked as deprecated and one remains.
dai-shi commentedon Apr 10, 2025
@KrishnaPG Please open a new discussion.
KrishnaPG commentedon Apr 10, 2025
Thank you @dai-shi Done: #3077
ipnon commentedon Apr 23, 2025
zustand makes React bearable 🧸
In all seriousness it is like LiveView in that it gets very near to an ideal way to write stateful client programs. And in such a simple way too. Us mortal programmers are not meant to keep endless waterfalls of props and callbacks in short-term memory.
I knew zustand was going to be good when I saw so much praise and so little documentation! A library that barely needs explanation will rarely let you down.
Thank you for your excellent work.