Skip to content

Commit

Permalink
Used WeakMap in favour of Map for garbage collection, if it helps at all
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonjd committed Dec 3, 2023
1 parent 6f76d61 commit 7692a7e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function getTranslation( key, blockNames ) {
}
}

const cache = new Map();
const cache = new WeakMap();

export function getRevisionChanges(
revision,
Expand Down

0 comments on commit 7692a7e

Please sign in to comment.