Merely selecting a block after load creates undo level #14766
Description
opened on Apr 2, 2019
To Reproduce
- Create a new post.
- Create a new paragraph with some text.
- Save the post.
- Reload the page.
- Select the paragraph block.
- Observe that the undo button is not disabled any longer.
Expected behavior
I don't expect block selection to create undo levels.
Additional context
I see the following actions when I select a block:
{type: "FETCH_REUSABLE_BLOCKS", id: undefined}
{type: "SELECT_BLOCK", initialPosition: null, clientId: "adb9ef30-61f7-45c3-b785-01fc5ca630e3"}
{type: "RECEIVE_REUSABLE_BLOCKS", results: Array(1)}
{type: "UPDATE_SETTINGS", settings: {…}}
{type: "RECEIVE_BLOCKS", blocks: Array(1)}
{type: "RESET_EDITOR_BLOCKS", blocks: Array(1), shouldCreateUndoLevel: false}
{type: "FETCH_REUSABLE_BLOCKS_SUCCESS", id: undefined}
So it looks like it has something to do with reusable blocks fetching? Cc @noisysocks @aduth.
Activity