<!-- wp:query {"queryId":1,"query":{"perPage":10,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":true,"taxQuery":null,"parents":[]},"align":"full","layout":{"type":"default"}} -->
<div class="wp-block-query alignfull">
<!-- wp:post-template {"align":"full","layout":{"type":"default"}} -->
<!-- wp:template-part {"slug":"teaser","theme":"twentytwentyfive"} /-->
<!-- /wp:post-template -->
</div>
<!-- /wp:query -->
Description
This is in regard to the
core/coverblock'sisDarkcheck here:gutenberg/packages/block-library/src/cover/edit/index.js
Lines 146 to 177 in 2fd341f
When set inside a template part as part of a
core/template-partblock, which itself is used in acore/queryloop, it can cause endless looping ofisDarkbeing set betweenfalseandtrue. This happens when there are at least two different images where one evaluates totrueand the otherfalse. Since the origin template is the same, this causes theisDarkattribute to bounce between the two values.Commenting out the
setAttributes()call in the above function stops the endless looping.Step-by-step reproduction instructions
/wp-content/themes/twentytwentyfive/parts/teaser.html:/wp-admin/site-editor.php?canvas=edit&p=%2Fwp_template%2Ftwentytwentyfive%2F%2Fhome) and paste the following into the template in Code Editor mode:Screenshots, screen recording, code snippet
Video.Project.16.mp4
Environment info
Please confirm that you have searched existing issues in the repo.
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Please confirm which theme type you used for testing.