Skip to content

Validate usable render behavior on registered block #362

@aduth

Description

@aduth

When registering a block, we should ensure that it has at minimum a save implementation (front-end UI representation) and optionally edit.

Once validated, we can collapse logic here to return early only on settings being falsey and assume if settings exist that a edit or save function/component can be used for displaying the block:

https://github.com/WordPress/gutenberg/blob/15db036/editor/editor/mode/visual.js#L25-L32

Metadata

Metadata

Assignees

No one assigned

    Labels

    Good First IssueAn issue that's suitable for someone looking to contribute for the first time[Feature] Block APIAPI that allows to express the block paradigm.[Status] In ProgressTracking issues with work in progress[Type] TaskIssues or PRs that have been broken down into an individual action to take

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions