<!-- wp:query {"queryId":1,"query":{"perPage":1,"pages":0,"offset":0,"postType":"post","order":"desc","orderBy":"date","author":"","search":"","exclude":[],"sticky":"","inherit":false,"parents":[],"format":[]},"enhancedPagination":true} -->
<div class="wp-block-query">
<!-- wp:post-template -->
<!-- wp:post-title /-->
<!-- /wp:post-template -->
<!-- wp:query-pagination -->
<!-- wp:query-pagination-previous /-->
<!-- wp:query-pagination-numbers /-->
<!-- wp:query-pagination-next /-->
<!-- /wp:query-pagination -->
</div>
<!-- /wp:query -->
Description
As per Interactivity API best practices in 6.8:
However, it seems
withSyncEvent()has no effect with regard to this whenSCRIPT_DEBUGis set totrue. The deprecation warning shows regardless. I was able to produce this with custom blocks as well as the built-incore/querystructure of blocks.Step-by-step reproduction instructions
define( 'SCRIPT_DEBUG', true );inwp-config.php.wp post generateScreenshots, screen recording, code snippet
Seems to be due to the
getEvaluate()indebug.js:This loses the
syncproperty thatwithSyncEvent()adds to the store method/function.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.