Custom block is going into infinite loop when updateBlockAttributes or replaceInnerBlocks is used to modify the Inner blocks. #61664
Open
Description
opened on May 14, 2024
Description
I have created a custom tabs block which uses the updateBlockAttributes and replaceInnerBlocks to update the attributes of each inner block (Tab).
When the tabs block is added on the page and I try to swap the template, the preview is going into the Infinite loop and causes react #185 error.
Step-by-step reproduction instructions
- Create a custom block which uses InnerBlocks.
- Use the updateBlockAttributes or replaceInnerBlocks function to modify the inner blocks of that custom block.
- Open the Swap Template modal.
Screenshots, screen recording, code snippet
No response
Environment info
No response
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
Activity