yoast-components icon indicating copy to clipboard operation
yoast-components copied to clipboard

Replace `componentWillMount` & `componentWillReceiveProps`

Open moorscode opened this issue 5 years ago • 0 comments

When SCRIPT_DEBUG is enabled, the development version of React is loaded in Gutenberg. This shows a lot of warnings about these two functions being deprecated

Replace with:

  • componentDidMount
  • static getDerivedStateFromProps

Add define( 'SCRIPT_DEBUG', true ); to your wp-config.php to see these warnings.

moorscode avatar Dec 07 '18 09:12 moorscode