Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
fix replaceReducer with a store enhancer #3524
fix replaceReducer with a store enhancer #3524
Changes from all commits
2fcea31
cacaecd
115e78c
5b2957a
7d8acc2
1d0d11a
554b79e
4713921
7168df6
66b6090
6e60f2d
2a5acb6
3f8cfb5
806f2aa
c736cf3
bbfb018
f5f796c
b95330c
b3ae3d5
4270e0e
4ed78cb
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Hey, would it be possible to make
StateExt
andExt
optional whenever not using an Enhancer?At the moment
createStore<S,A,StateExt,Ext>
generic typings are required as opposed ascreateStore<S,A>
for stores without enhancers. Thanks!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.
this fix ends up being fine because the overloads provide more restrictive typing (you can check in
tests/typescript/middleware.ts
to see that the stores returned are strictly typed)