Template Editor does not re render block after scripts have loaded #38110
Labels
[Feature] Site Editor
Related to the overarching Site Editor (formerly "full site editing")
[Type] Bug
An existing feature does not function as intended
Description
Based on the Make WordPress post about Blocks in an iframed (template) editor blocks will get re-rendered once the corresponding script has been loaded in the iframe.
This works great in the template editor. The template part however does not rerender the component and therefore the callback in the
useRefEffect
never gets executed when the script is actually loaded.Step-by-step reproduction instructions
useRefEffect
as shown in the description aboveScreenshots, screen recording, code snippet
No response
Environment info
Site Health:
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: