-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Breaking change in 7.0.1? #1233
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
Comments
It appears that Next.js is (was?) using a bad check for whether a value is a valid React component type. As of v7, we now return a A quick search turns up these related Next issues: vercel/next.js#5692 Sounds as if it may have been fixed already, and upgrading your Next version might resolve the issue. |
Thanks for the quick response! |
Sure. Does bumping the Next version resolve things for you? |
Bumping next to canary broke a ton of other things I don't have time to deal with, so I'm afraid I'll have to save this update for later. Thanks for pointing me in the right direction, anyway. |
What is the current behavior?
I have a branch on a private project which makes one change:
This causes the following error message in the project:
I understand that it's a major version bump, and a breaking change should be expected, but when I looked at the release notes for 7.0.1, I didn't see mention of anything that might break a next app with HOCs.
This project is using Next.js, with the following default code (
__app.js
):The page in question is a React component wrapped by a higher-order component that looks like this:
That component currently works.
What is the expected behavior?
Not to break this code that works with v6.0.1.
Which versions of React, ReactDOM/React Native, Redux, and React Redux are you using? Which browser and OS are affected by this issue? Did this work in previous versions of React Redux?
Works with react-redux v6.0.1.
The text was updated successfully, but these errors were encountered: