Closed bobbingwide closed 1 year ago
Edit one of the template parts so that it doesn't go recursive. This can be done by removing the blank space between the block name and the attributes. eg
<ul>
<li>Issue-30 test case.
<!-- wp:template-part{ "slug": "issue-27", "theme": "fizzie" } /-->
</li>
</ul>
Template parts can no longer be inserted in the block editor.
They can be inserted in the Site Editor.
I reverted issue-30.html
and tested in the Site Editor.
The recursion detection logic in Gutenberg worked. It was fixed in March 2021.
I wanted to test my rich text localization ( l10n) logic in Gutenberg 9.5.1 so I created a template part called
i18n-rich-text.html
. I tried to load it using the Template part block in a page, while in thebb_BB
locale.But in
s.b/wp56
I gotThis block has encountered an error and cannot be previewed
even before I had a chance to pick the template part. I believe this was due to the Template part block trying to display Previews of the blocks and failing to detect recursion.Note: In![image](https://user-images.githubusercontent.com/2474435/101542844-4b3dfd80-399b-11eb-9bf0-16488e756607.png)
s.b/wp55/tt1
- with the recursive template parts I'd created for Twenty Twenty-One Blocks it causes Chrome to time out.Clearly there's a problem with the Template parts block ( core/template-part ). But what should I do as a workaround?