Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Zustand 5 is too good. #2789

Open
enricoros opened this issue Oct 14, 2024 · 9 comments
Open

Zustand 5 is too good. #2789

enricoros opened this issue Oct 14, 2024 · 9 comments

Comments

@enricoros
Copy link

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 :)

@dai-shi
Copy link
Member

dai-shi commented Oct 14, 2024

So nice to hear that! (Let's keep this open for a while.)

@sagarpanchal
Copy link

sagarpanchal commented 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 using useEffect when UI is not a concern with the effect.

@lemondreamtobe
Copy link

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 :)

absolutely agree!.I think zustand is the most perfect store library for React.~ I love it!

@csvan
Copy link

csvan commented Nov 7, 2024

Indeed, thank you so much for this lib <3

@rg-lahcene
Copy link

I will screenshot this issue in my ADR for choosing zustand as state managment library :D

@Sharqiewicz
Copy link

❤️

@zxkws
Copy link

zxkws commented Dec 3, 2024

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 :)

absolutely agree!.I think zustand is the most perfect store library for React.~ I love it!

Me too!

@radaco99
Copy link

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
Copy link

94Rabbit commented Feb 7, 2025

I also used zustand by chance and it was like a treasure 😂。

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants