Description
When a block type becomes temporarily unavailable (e.g., a plugin is deactivated), the block correctly renders as core/missing. However, when the block type becomes available again (plugin reactivated), the block continues to render as core/missing even after a full page reload.
This appears to be caused by the collaborative editing persistence layer restoring stale block state from the persisted CRDT document, which takes precedence over re-parsing the raw content.
Making any edit in the Code Editor mode forces a re-parse and resolves the issue.
Step-by-step reproduction instructions
- Install and activate a plugin that registers custom blocks (e.g. WooCommerce).
- Create a page and add a block from that plugin (e.g.
<!-- wp:woocommerce/cart-link /-->). Save.
- Deactivate the plugin.
- Reload the editor - the block renders as
core/missing, as expected. Don't make any changes or save the page.
- Reactivate the plugin.
- Reload the editor - the block still renders as core/missing even though the block type is available again.
Screenshots, screen recording, code snippet
No response
Environment info
No response
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.
Description
When a block type becomes temporarily unavailable (e.g., a plugin is deactivated), the block correctly renders as
core/missing. However, when the block type becomes available again (plugin reactivated), the block continues to render ascore/missingeven after a full page reload.This appears to be caused by the collaborative editing persistence layer restoring stale block state from the persisted CRDT document, which takes precedence over re-parsing the raw content.
Making any edit in the Code Editor mode forces a re-parse and resolves the issue.
Step-by-step reproduction instructions
<!-- wp:woocommerce/cart-link /-->). Save.core/missing, as expected. Don't make any changes or save the page.Screenshots, screen recording, code snippet
No response
Environment info
No response
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.