Skip to content

Commit

Permalink
Explain why dispatching RECEIVE_BLOCKS is necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
noisysocks committed Mar 9, 2018
1 parent f4eb391 commit 08333d3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions editor/store/effects.js
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,7 @@ export default {
} )
) );

// Re-add the original block to the store, since replaceBlock() will have removed it
dispatch( receiveBlocks( [ parsedBlock ] ) );
},
CREATE_NOTICE( { notice: { content, spokenMessage } } ) {
Expand Down

0 comments on commit 08333d3

Please sign in to comment.