Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

Render multiple inner blocks in the save wrapper #26

Merged
merged 1 commit into from
May 24, 2022

Conversation

luisherranz
Copy link
Member

This is a quick fix for #23, so we can continue experimenting with these APIs.


Obviously, we should not serialize the inner blocks twice, but we'll improve that if/when we propose this in Gutenberg.

Copy link
Collaborator

@michalczaplinski michalczaplinski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! 🙂

So, just to be clear, with useInnerBlocksProps.save(); it is possible to render the inner blocks multiple times after all...?

@luisherranz
Copy link
Member Author

I think that technically, you are rendering them only once, but you are adding them to the markup twice.

@luisherranz luisherranz merged commit 79fd074 into main May 24, 2022
@michalczaplinski
Copy link
Collaborator

got it, thanks! 🙁

@luisherranz luisherranz deleted the fix-multiple-inner-block-in-save-wrapper branch September 6, 2022 10:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot render InnerBlocks.Content more than once
2 participants