-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Closed
Labels
Good First IssueAn issue that's suitable for someone looking to contribute for the first timeAn issue that's suitable for someone looking to contribute for the first time[Package] Editor/packages/editor/packages/editor[Type] Code QualityIssues or PRs that relate to code qualityIssues or PRs that relate to code quality[Type] TaskIssues or PRs that have been broken down into an individual action to takeIssues or PRs that have been broken down into an individual action to take
Description
Currently, blocks state is "reset" in response to two separate actions RESET_BLOCKS
and SETUP_EDITOR_STATE
.
gutenberg/packages/editor/src/store/reducer.js
Lines 292 to 293 in 005c790
case 'RESET_BLOCKS': | |
case 'SETUP_EDITOR_STATE': |
gutenberg/packages/editor/src/store/reducer.js
Lines 395 to 396 in 005c790
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
Labels
Good First IssueAn issue that's suitable for someone looking to contribute for the first timeAn issue that's suitable for someone looking to contribute for the first time[Package] Editor/packages/editor/packages/editor[Type] Code QualityIssues or PRs that relate to code qualityIssues or PRs that relate to code quality[Type] TaskIssues or PRs that have been broken down into an individual action to takeIssues or PRs that have been broken down into an individual action to take