From fe96a77c494064061aafcb99331b4bf3acee26e5 Mon Sep 17 00:00:00 2001 From: Kai Hao Date: Fri, 17 Nov 2023 12:37:36 +0800 Subject: [PATCH] Add comment --- packages/block-library/src/block/edit.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/block-library/src/block/edit.js b/packages/block-library/src/block/edit.js index 7a4542775477b..f173be1bf9845 100644 --- a/packages/block-library/src/block/edit.js +++ b/packages/block-library/src/block/edit.js @@ -236,6 +236,7 @@ export default function ReusableBlockEdit( { const blocks = getBlocks( patternClientId ); if ( blocks !== prevBlocks ) { prevBlocks = blocks; + // TODO: We should probably cache this somehow to improve performance. const nextDynamicContent = getDynamicContentFromBlocks( blocks, defaultValuesRef.current