-
Notifications
You must be signed in to change notification settings - Fork 759
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
[Bug] "componentWillMount" warning from React Helmet #1327
Comments
We'll move away from this package, but the warning is "moot". It happens during pre-render, and then we strip the problematic code and replace it with our own already. We have indeed until 17.x to make the change :) |
Same issue it gives error
|
It's an upstream issue -- package no longer used in RS 8 (for now). You can ignore the warning for now. |
is there a way to get rid of this issue? Any suggestions or alternate packages? |
It's not present in production. You can safely ignore it for now. It will be fixed in the next major. |
Reporting a bug?
Whenever you use the
Head
component (which is basically aliased to React Helmet), React prints this warning in the console:Digging in deeper, the component in question appears to be rendered by React Helmet, and there is an open issue in that repo about this: nfl/react-helmet#465
This package doesn't seem to be very actively maintained - there's no maintainer comment on that issue from August 9, and the last commit on the master branch was May 2. Because of that, it might be valuable to move away from it, maybe to react-helmet-async as a couple others have mentioned in that thread. (and apparently has been discussed in this repo before too, in #788).
Environment
Run and copy the result of:
npx envinfo --system --npmPackages react* --binaries --npmGlobalPackages react* --browsers
here:
of course include any other package versions here if relevant.
Steps to Reproduce the problem
Base your steps off of any freshly installed react-static template!
npx react-static create
)src/pages/about.js
, add a<Head>
component:Expected Behavior
There shouldn't be any React warnings in the console - not only are they distracting, but they're a sign that a future major release of React will break functionality.
The text was updated successfully, but these errors were encountered: