Skip to content

Commit

Permalink
fixup! fixup! Replace source with __unstableBlockSource
Browse files Browse the repository at this point in the history
  • Loading branch information
dmsnell committed Mar 14, 2022
1 parent 54bcfe3 commit 0b721f8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/blocks/src/api/parser/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,11 @@ export function parseRawBlock( rawBlock ) {

if ( ! updatedBlock.isValid ) {
// Preserve the original unprocessed version of the block
// that we received so that we can preserve it in its
// existing state when we save.
// that we received (no fixes, no deprecations) so that
// we can save it as close to exactly the same way as
// we loaded it. This is important to avoid corruption
// and data loss caused by block implementations trying
// to process data that isn't fully recognized.
updatedBlock.__unstableBlockSource = rawBlock;
}

Expand Down

0 comments on commit 0b721f8

Please sign in to comment.