Description
When I set define( 'SCRIPT_DEBUG', true ); in wp-config.php, if I insert a block with a slash, I get a warning in the console. Note that the block will be displayed correctly.
Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in a useEffect cleanup function.
If I insert a block from Toggle block inserter, the warning will not be displayed.
Step-by-step reproduction instructions
- Set
define( 'SCRIPT_DEBUG', true ); in wp-config.php
- Open the developer tools in your browser.
- Go to
/wp-admin/
- Go to the
Add New page.
- Click on editor content.
- Type
/heading.
- Finally. You can see the following error in the developer tools.
Warning: Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in a useEffect cleanup function.
in ForwardRef(RichTextWrapper) (created by ParagraphBlock)
in ParagraphBlock (created by edit_Edit)
in edit_Edit (created by WithToolbarControls(edit_Edit))
...
Screenshots, screen recording, code snippet

Environment info
- WordPress 5.8.1
- I have not installed the Gutenberg plugin.
- macOS Big Sur 11.6
- Google Chrome 94.0.4606.81
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
Description
When I set
define( 'SCRIPT_DEBUG', true );in wp-config.php, if I insert a block with a slash, I get a warning in the console. Note that the block will be displayed correctly.If I insert a block from
Toggle block inserter, the warning will not be displayed.Step-by-step reproduction instructions
define( 'SCRIPT_DEBUG', true );in wp-config.php/wp-admin/Add Newpage./heading.Screenshots, screen recording, code snippet
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes