-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
shallowEqual breaks typed selector return type #1964
Comments
#1348 found related issue |
Could you try installing the CodeSandbox preview build from #1965 and see if that fixes it for you? (go to https://ci.codesandbox.io/status/reduxjs/react-redux/pr/1965 and follow the install instructions) |
Ah, very good catch, that one needs it too! |
Yes, thanks a lot |
@phryneas will you release these changes? |
We'll need a few type tests for that before @markerikson pulls the lever on that - I'll try to get to that in the next few days. Meanwhile, that CI build should work nicely I hope? |
Hmm. Fwiw I just tried setting up a typetest based on this and #1348 , and it seems to be working correctly without @justgowa by any chance do you have any of TS's "strict" settings turned off? I'm okay with shipping the change because I don't think it will hurt, but after a quick try I can't repro the original issue. |
Fixed by #1965 . |
@markerikson yep, ts strict is off |
@justgowa we cannot make any guarantees for any TypeScript configuration other than |
@phryneas i get it, i'm working on pretty old project and unfortunatly it started with non strict rules. |
What version of React, ReactDOM/React Native, Redux, and React Redux are you using?
What is the current behavior?
without
shallowEqual
type inferred correctlyotherwise it breaks
What is the expected behavior?
types infer correctly with
shallowEqual
Which browser and OS are affected by this issue?
No response
Did this work in previous versions of React Redux?
The text was updated successfully, but these errors were encountered: