-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
"Unsafe lifecycle methods" error in console #7897
Comments
I'm also seeing several like this when I click on the
|
This was also reported in #core-testing on WordPress Slack at https://wordpress.slack.com/archives/C03B0H5J0/p1537513585000100 (props manooweb) with the following screenshot: I think this is coming from When loading a new post I see:
When publishing a post I see:
|
I have |
Leaving this reference here, as it can be useful as a recommendation for block authors: https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html#gradual-migration-path |
What's the "official" recommendation for handling this warning? Just ignore it? Or set SCRIPT_DEBUG to false while developing? |
Hi all. These "Warning: Unsafe lifecycle methods were found within a strict-mode tree:" are becoming ever increasingly frustrating. Debugging plugin development is not easy when the console log is filled with hundreds of JS errors on page load. Is this fixable? |
It seems that this is being tracked in #11360. |
I have similar error but how can i fixed, i didn't see. |
If you're in Chrome, right click the warning in your console and select the "Hide messages from react-dom.js" option. That'll add a URL filter to the console that keeps those pesky warnings out. |
The message |
I'm seeing an error in the console all the time.
To Reproduce
It seems to be coming from Gutenberg itself, there aren't any plugins activated.
Expected behavior
There shouldn't be any errors or warnings in the console.
Desktop:
The text was updated successfully, but these errors were encountered: