Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Zustand 5 is too good. #2789

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

Zustand 5 is too good. #2789

enricoros opened this issue Oct 14, 2024 · 6 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

❤️

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

No branches or pull requests

7 participants