Skip to content

Remote Data Blocks do not work in site editor #113

Open
@chriszarate

Description

Most flows involve editing a post or page directly (edit.php). But it is also possible to edit a page via the Site Editor (site-editor.php).

To replicate, navigate to Appearance > Editor > Pages > Edit, then add a remote data block that requires choosing from a list (e.g., "Conference Event"). You will see a perpetual loading state, because there are no patterns available to render the data.

In the site editor context, loading patterns by block type (wp.data.select('core/block-editor').getPatternsByBlockTypes( /* block type */ )) always returns an empty set. We are therefore unable to load the block's "default" pattern. We rely on the default pattern to display the remote data.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions