Skip to content

iAPI router: Add an isRouterRegion property in block.json for automatic incompatible blocks detection #70875

@DAreRodz

Description

@DAreRodz

What problem does this address?

Of all the core blocks, the Query Loop is the only block with a data-wp-router-region directive that allows inner blocks. It contains a specific logic to detect incompatible blocks and then disable the client-side navigation feature. However, any similar blocks from third-party developers, i.e., a block with a data-wp-router-region directive that allows inner blocks, would require precisely the same logic.

What is your proposed solution?

Reuse this code present in the Query Loop block and apply it to all blocks with a isRouterRegion property in their block.json file.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions