Implementing two innerBlocks inside a custom block results in shared state between the two components #19793
Labels
[Feature] Nested / Inner Blocks
Anything related to the experience of nested/inner blocks inside a larger container, like Group or P
[Type] Help Request
Help with setup, implementation, or "How do I?" questions.
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:
Expected behavior
Each InnerBlock to have it own state, a single InspectorControls options for each InnerBlock, normal CPU load and no page lag.
Screenshots
![Bug](https://user-images.githubusercontent.com/59491855/72836875-53d1fc00-3c42-11ea-8ce7-74b8d93e5af9.jpg)
Bug
Code
![bug_code](https://user-images.githubusercontent.com/59491855/72836891-5e8c9100-3c42-11ea-8940-ceb17f428b2e.JPG)
Desktop:
Additional context
The text was updated successfully, but these errors were encountered: