From 7692a7e393e3fb84c0223925dfc83590d7b4388e Mon Sep 17 00:00:00 2001 From: ramon Date: Mon, 4 Dec 2023 08:59:58 +1100 Subject: [PATCH] Used WeakMap in favour of Map for garbage collection, if it helps at all --- .../global-styles/screen-revisions/get-revision-changes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/edit-site/src/components/global-styles/screen-revisions/get-revision-changes.js b/packages/edit-site/src/components/global-styles/screen-revisions/get-revision-changes.js index 3e3b766d5f59d6..f7eb8730a2e224 100644 --- a/packages/edit-site/src/components/global-styles/screen-revisions/get-revision-changes.js +++ b/packages/edit-site/src/components/global-styles/screen-revisions/get-revision-changes.js @@ -69,7 +69,7 @@ function getTranslation( key, blockNames ) { } } -const cache = new Map(); +const cache = new WeakMap(); export function getRevisionChanges( revision,