From 14a881a5d81ccae9913741478f2ab9b7d1285c97 Mon Sep 17 00:00:00 2001 From: Dennis Snell Date: Fri, 11 Mar 2022 13:56:23 -0700 Subject: [PATCH] fixup! fixup! Replace `source` with `__unstableBlockSource` --- packages/blocks/src/api/parser/index.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/blocks/src/api/parser/index.js b/packages/blocks/src/api/parser/index.js index 2ca749ccf57f3d..a9f33417b6f44b 100644 --- a/packages/blocks/src/api/parser/index.js +++ b/packages/blocks/src/api/parser/index.js @@ -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; }