-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Warning: componentWillReceiveProps has been renamed #3720
Comments
|
This is fixed by #3487. |
@jakeboone02 - I'm on version 3.0.4 and it still warns about this. I can even see it being used in the source code? |
@NordlingDev That is because @jakeboone02 references a pullrequest but the pullrequest is not merged yet. |
Any idea when this will be merged? trying to remove these warnings... |
@rachelleahr Pull request #3716 fixes it and is merged, but I don't know when it will be released. |
Any news on when this will be released? |
@gwyneplaine When is the next release planned? |
Does anybody know what is the solution for it? Still having this warning |
it fixed? but I have installed react 16.9.0 and react-select 3.0.4 using NPM. and I still got the warning
|
Not fixed atm |
1 |
+1 |
Everyone retweet this lmao |
So I'm going to drop this here. https://www.npmjs.com/package/react-select-temp I'm not happy about it either. I'm just using this to make the warning go away until the maintainers in this lib sort this out. I'm going to continue to monitor the threads and switch back to the real package once this one is ready. I just took this PR, published to NPM, then updated this lib to use that one. Everything we need to make this warning go away exists. We just need the maintainers of this lib to press some buttons. |
We use https://github.com/ds300/patch-package to patch unsupported lifecycle methods. |
Sorry for the delay everyone, we've now published 3.0.6 with @ranneyd's fix to react-input-autosize, thanks again :) Looking forward to refactoring rs to truly deprecate usage of these lifecycles soon, thank you al lfor your patience 🙏 it really is appreciated |
@aleksfront thanks for this, I've released 3.0.7 with a fresh yarn.lock which should result in resolved warnings, please let me know if the problem persists 👍 |
Confirming that |
: componentWillReceiveProps has been renamed, and is not recommended for use. See https://fb.me/react-async-component-lifecycle-hooks for details.
Please update the following components: SafeView please give the answer |
@kavindadilshan @gwyneplaine everything works like a charm now. Thank you so much! |
Thanks for the issue, closing since this is now fixed! |
Looks like there are still some React Strict Mode warnings being generated as of the latest version today (3.0.8). There's an issue for them here: #3745 |
+1 |
With the release of React 16.3, some new lifecycle methods have been introduced, and release of React 17 will deprecate some lifecycle method. getDerivedStateFromProps is one of those newly introduced lifecycle method replacing componentWillReceiveProps, which has now become UNSAFE_componentWillReceiveProps. Solution: rename |
Note that renaming to "UNSAFE_" is a breaking change since it drops support for < 16.3. |
Getting this warning in version 3.1.0 index.js:1 Warning: Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://fb.me/react-unsafe-component-lifecycles for details.
Please update the following components: AutosizeInput, Select |
Why the issue is closed then? Im still getting error in 3.1.0. |
3.1.0 and still with issues... |
|
Hi all, Thank you to everyone who has provided information above. As you may be aware, this bug has been reported multiple times as per issue #4094. On behalf of the maintainers I apologise it's taken awhile to get to this. A new master issue #4094 has since been created to help keep track of this bug going forward. This new issue will exist as the source of truth going forward to investigate the issue, report findings, and implement a bug fix. We'll take into account all the details above while investigating. If you feel this issue has been wrongly closed as it isn't related to the new master issue #4094, please let us know and we'll take another look. Again, thank you. |
Try to replace ur From: To: Or: |
Happy 2023... any news on this? 👀 |
It should be fixed in the latest version of react-select. |
Getting this warning !!!!
Warning: componentWillReceiveProps has been renamed
Screenshot
The text was updated successfully, but these errors were encountered: