Skip to content

The recursive template parts in Fizzie break Gutenberg's Template parts block  #49

@bobbingwide

Description

@bobbingwide

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 the bb_BB locale.

But in s.b/wp56 I got This 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 s.b/wp55/tt1 - with the recursive template parts I'd created for Twenty Twenty-One Blocks it causes Chrome to time out.
image

Clearly there's a problem with the Template parts block ( core/template-part ).
But what should I do as a workaround?

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingenhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions