Skip to content

Editor: Initialize blocks state by RESET_BLOCKS #11641

@aduth

Description

@aduth

Currently, blocks state is "reset" in response to two separate actions RESET_BLOCKS and SETUP_EDITOR_STATE.

case 'RESET_BLOCKS':
case 'SETUP_EDITOR_STATE':

case 'RESET_BLOCKS':
case 'SETUP_EDITOR_STATE':

If possible, we should seek to refactor the SETUP_EDITOR effect handler to dispatch resetBlocks directly such that it would only be necessary to cover the RESET_BLOCKS action type from the reducer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Good First IssueAn issue that's suitable for someone looking to contribute for the first time[Package] Editor/packages/editor[Type] Code QualityIssues or PRs that relate to code quality[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