Editor: Initialize blocks state by RESET_BLOCKS
#11641
Labels
Good First Issue
An issue that's suitable for someone looking to contribute for the first time
[Package] Editor
/packages/editor
[Type] Code Quality
Issues or PRs that relate to code quality
[Type] Task
Issues or PRs that have been broken down into an individual action to take
Currently, blocks state is "reset" in response to two separate actions
RESET_BLOCKS
andSETUP_EDITOR_STATE
.gutenberg/packages/editor/src/store/reducer.js
Lines 292 to 293 in 005c790
gutenberg/packages/editor/src/store/reducer.js
Lines 395 to 396 in 005c790
If possible, we should seek to refactor the
SETUP_EDITOR
effect handler to dispatchresetBlocks
directly such that it would only be necessary to cover theRESET_BLOCKS
action type from the reducer.The text was updated successfully, but these errors were encountered: