Closed bobbingwide closed 1 year ago
I reproduced the problem with TT1 blocks What's actually happening is that the post-content block is going recursive.
I reproduced the problem with the Phoenix theme.
Using the Site Editor I edited the single page and saved the content group as single-content
.
Then I tried to edit it from Appearance > Template parts
This animated gif shows the recursion ending with the block failing and the template part's source HTML.
Fixed in WordPress 5.8
For the following HTML
When viewing the Page content template part in the visual editor it appears that the
post-title block
is repeated and gets smaller and smaller, until the editor finally gives up with a broken block. The console log reports:Uncaught Error: Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.
Removing the![image](https://user-images.githubusercontent.com/2474435/114054816-16c64980-9888-11eb-8ea4-68701aec2584.png)
post-content
block prevents the recursion.Gutenberg 10.3.1