Closed
Description
Describe the bug
When creating a custom block with two InnerBlocks next to each other they share the same state, duplicate the InspectorControls in the sidebar and cause high CPU load resulting in page lag.
To reproduce
Steps to reproduce the behavior:
- Create a block with two InnerBlocks in the Edit Callback
- Add the block to a page
- Try edit the block, and look at the InspectorControls
- Encounter duplicate behavior of the two blocks, both blocks share the same state and the InspectorControls options are duplicated. Also encounter high CPU load and page lag.
Expected behavior
Each InnerBlock to have it own state, a single InspectorControls options for each InnerBlock, normal CPU load and no page lag.
Desktop:
- OS: Linux Ubuntu
- Browser: Firefox
Additional context
- WordPress 5.3.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment