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 4.5.0+ Support #79

Open
enchorb opened this issue Apr 19, 2024 · 12 comments
Open

Zustand 4.5.0+ Support #79

enchorb opened this issue Apr 19, 2024 · 12 comments
Labels
bug Something isn't working

Comments

@enchorb
Copy link
Collaborator

enchorb commented Apr 19, 2024

Zustand 4.5.0+ introduces getInitialState (pmndrs/zustand#2277).

Using zustand-x this does not work as have to stay on Zustand 4.4.7.

@enchorb enchorb added the bug Something isn't working label Apr 19, 2024
@zbeyens
Copy link
Member

zbeyens commented Apr 19, 2024

Thanks for reporting. Added to the README.

@vcardins
Copy link

Any updates on this?

@vcardins
Copy link

@zbeyens I'm a big fan of zustand-x's simplicity and would love to continue using it. Given the upcoming release of Zustand v5, I'm curious about the upgrade plans for zustand-x. Would maintaining compatibility with newer Zustand versions be a priority?

@zbeyens
Copy link
Member

zbeyens commented Aug 19, 2024

Will give a try once v5 is out

@vcardins
Copy link

@zbeyens Many thanks! The Version 5 RC is out. v5 RC Maybe it's a good time to start so we can release it simultaneously?

@vcardins
Copy link

@zbeyens Would you like me to assist in getting this started?

@zbeyens
Copy link
Member

zbeyens commented Sep 25, 2024

Would appreciate it!

@vcardins
Copy link

Could you please bring me up to speed on the matter and provide some guidance? I'm eager to contribute.

@zbeyens
Copy link
Member

zbeyens commented Sep 25, 2024

I didn't initiate the task so it just consists of migrating the breaking changes, including the types.

@imarabinda
Copy link

@zbeyens I have started working on implementing [email protected]+ support.
https://github.com/imarabinda/zustand-x

@zbeyens
Copy link
Member

zbeyens commented Dec 25, 2024

Great @imarabinda , could you list what's left to do? Any regression (e.g. immer?)

@imarabinda
Copy link

@zbeyens Everything is working perfectly, and all test cases have passed successfully. Testers are welcome to test this build. It would be greatly appreciated if someone could assist in generating dynamic configurations for the middleware.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants