-
-
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
Connect throws an error when connecting a memoized component #1061
Comments
Duplicate of #914 . This will be fixed in React-Redux 6.0. Please try out our current WIP branches at #995 and #1000 to see if they work okay, available on NPM as tags (It's actually entirely possible they might not work right here - we might need to rebuild against React 16.6+ / a current version of |
The |
Okay, thanks for the info. I'm reconsidering this a bit - it may be worth putting out a 5.0.8 / 5.1.0 build that only switches to use of |
same issue |
@ddzy : please provide a project that reproduces the issue, preferably in CodeSandbox. |
After upgrading my project to React 16.6.0 and migrating components to
React.memo
instead ofRecompose.pure
, connect is throwing an error when passed a memoized component:Uncaught Error: You must pass a component to the function returned by connect. Instead received {"compare":null}
Repro:
The text was updated successfully, but these errors were encountered: