-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
getDerivedStateFromProps #4354
Comments
What version of |
Thanks @gaearon for your prompt response. I am using react-redux ^5.0.7 |
Can you create an isolated case in CodeSandbox? |
@gaearon sure, thanks. Unfortunately in sandbox the issue(warning) isn't reproducible. Here is what I got when running locally: Any advice would be very appreciated 😀 |
It appears that you are using the new lifecycle method, but also keeping OTHER legacy ones in there. If you update the others as well then you should stop getting the error. |
I checked out the project locally and still can't reproduce. What's likely happening is that you have an older version of Specifically you want to make sure you're using |
It helped! Thanks a lot @gaearon |
I am getting warning with getDerivedStateFromProps in the component like:
The above issue has been reported on react-hot-reloader but I am using create-react-app with react 16.3 and have the same one:(
Can you advise?
The text was updated successfully, but these errors were encountered: