-
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
Deprecated lifecycle method warnings with React 16.9 #3715
Comments
I've got similar warning related to this one
|
That means you have component using legacy lifecycle OR you are using a library which uses the legacy lifecycle, I don't see this as an issue, in fact, it is helpful to identify legacy code and warn you when you do use libraries that do still. |
@jairusd react-select is the library with legacy methods. |
@JedWatson, since react 16.9.0 started to show a warning for deprecated lifecycles, is it possible that you create a patch release with a quick fix of renaming the deprecated lifecycles in order to remove the warning? I've created a pull request (PR) for this: #3716 Note that this is just a quick fix for now to remove the warnings. It still requires a fix to move the code from the deprecated lifecycles to other related lifecycles. Thanks |
oh sorry guys i was drunk when i made that comment |
What about running |
@tonix-tuft, I doubt if it would. If it does, it will be overwritten on your next |
By the way, my PR was merged to master. Just waiting for the next release |
@rj-david thanks! |
@tonix-tuft I ran
|
even using this "npx react-codemod rename-unsafe-lifecycles" ,the warning still persists..what should i do to avoid this warning? |
@gwyneplaine when can we expect this for a new release? Thanks |
the latest version of react-moment is also a library with this issue |
@zhenyu0519, is that package a dependency of this package? |
oops. wrongs repo... |
Sorry. I don't know what I was thinking. It's not. |
Thanks @gwyneplaine for merging #3716. Would you mind cutting a release with the change? Also, is there any chance you're in touch with Jed and could help us get a similar fix for his other project, JedWatson/react-input-autosize#163? |
I have same warning. I re-implement my component using react hooks but the warning is still showing. Anyone have same issue. These warning should not be shown in functional component. |
looking forward to see #3716 published to npm for the time being so my console is less cluttered! tnx everyone! |
+1 to hoping for a release soon to get rid of these. We've cleared out all of ours in our app, but waiting for all these dependencies to catch up so I can reclaim my console again. |
I just forked the repo and published a new package: https://www.npmjs.com/package/@denyo/react-select |
@denyo your solution has this same issue: So we need to fix this one too: |
Hmmm, so the suggestion is to leave the original 17K star react-select with a trickle of support and jump over to a fork which will itself will incorporate a temporary fork of react-input-autosize which will receive how much maintenance? I personally will either wait on this repo to get over this hump or remove my dependency on react-select altogether. But that is just me. |
@leantide my idea is switch to the fork with the fix in it, hard-code the version number (no #javascriptdevelopment |
@ranneyd I wish you all the best. This is about the 5th library I've run into fundamental maintenance issues with. I am slowly learning that not all github stars are equal as many can be legacy stars. I need to reduce my dependencies. |
@leantide I feel your pain, and I'm considering something similar. It's unfortunate because this is a very nice lib otherwise. |
I was able to fix this by migrating my project away from react-select. But it is not without sadness. |
@JedWatson any updates on this issue? I don't think it's sustainable to keep this for a long term project if this issue won't be resolved :/ |
Nope , still waiting , got the same error in my project |
Hey everyone, sorry for the delay here. fwiw we do put a lot of time into maintaining this project, although this particular issue with the warnings in console caught us up. The warnings should have been fixed comprehensively in the latest releases of both |
The following warning is shown upon upgrading to React 16.9.0:
The text was updated successfully, but these errors were encountered: