You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error is that the types do not consider a code-supported case where mergeProps is defined, but mapDispatchToProps is not. The types expect that the passed value will be undefined, whereas the code actually passes { dispatch: Dispatch }.
This means that, when the Typescript option strictFunctionTypes is set to true, correctly typed usages of this pattern will fail.
What is the expected behavior?
When turning strictFunctionTypes on, the types should still compile for this specific use case. A PR has been opened to fix the issue.
I was asked to file this issue to make sure it gets tracked for v8 development.
Which browser and OS are affected by this issue?
No response
Did this work in previous versions of React Redux?