-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
feat: Migrations regarding higher kinded mutators for v4 #772
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 1ef2049:
|
7e3582b
to
c6228cd
Compare
In #715 you reviewed and finally we were going to remove |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like a good migration path!
So, this looks almost ready. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, I'm merging this for v3.7.0. If we have more ideas for migration paths, we can release patch versions v3.7.x.
If you're in a hurry go for it otherwise I was about to deprecate other middleware store types in favor |
Oh, I thought it's impossible. |
Right now the deprecation message is this... /**
* @deprecated Use `Mutate<StoreApi<T>, [["zustand/subscribeWithSelector", never]]>`.
* If you have multiple middlewares see the documentation for `Mutate` usage.
*/ I think we need to educate users how to use And I think we should also mention this is for an easier migration to v4. |
yeah, we should write it in release notes (i don't plan to change readme for this.) And it may sound crazy, but in the |
I'd be fine with that, the readme also anyway tells users to refer to the test file regarding middleware types, so it's not a big deal I guess. And I already have migrated the all tests (including ones with multiple middlewares) to |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool. I'm already pretty happy with this version.
Please follow the coding convention and fix conflicts, and we should be good to go!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Let's ship it.
(#715 branch renamed)