-
Notifications
You must be signed in to change notification settings - Fork 659
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
React warning: componentWillMount has been renamed, and is not recommended for use #499
Comments
This requires updating React Side Effects. They just need to update the package. |
@GasimGasimzada yes that's right. I hope it will be fixed in future updates |
I'm a little confused because I'm reading that some are switching over to react-helmet-async mentioning that this project is no longer maintained....so, just checking, will this be updated or should we switch over? I'm using GatsbyJS and I'm getting this error as well. |
I would also like some clarification on this, is this project still maintained or should we be switching to the async version? |
I've recently had the opportunity to devote some time back to this project. And I'm trying to as quickly as possible right this ship. I understand if you'd like to play with react-helmet-async, but updates for this library will be coming. Then it'll be up to you all which one to stick with. |
Good job @cwelch5 . Keep it up buddy! 🎉 |
@cwelch5 Please, thank you 🤑 |
looks like At the very least, the current version of |
Thanks for everyone's patience. We are actively working on 6.0.0 release. 6.0.0-beta.2 is available and will work with the latest React version. |
I appreciate all the work you are putting in this! |
Do you want to request a feature or report a bug?
Report a bug
What is the current behavior?
Hey buddies, everything works fine, the head tags updates correctly except that the React warns that componentWillMount is obsolete.
See https://fb.me/react-unsafe-component-lifecycles for details.
How did I know this caused the warning?
Well, when I remove/disconnect the from my App.js, the warning disappears.
Suggested fix according to the console message
npx react-codemod rename-unsafe-lifecycles
in your project source folder.Please update the following components: SideEffect(NullComponent)
Which versions of React and react-helmet, and which browser / OS are affected by this issue?
Did this work in previous versions of React and/or react-helmet?
The text was updated successfully, but these errors were encountered: