diff --git a/js_modules/dagster-ui/packages/ui-core/src/util/weakMapMemoize.ts b/js_modules/dagster-ui/packages/ui-core/src/util/weakMapMemoize.ts index f984c3a81bbf0..1f8522098ed74 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/util/weakMapMemoize.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/util/weakMapMemoize.ts @@ -58,12 +58,6 @@ export function weakMapMemoize(fn: T, options?: WeakMapMe } else { parent.map.delete(parentKey); } - - // Remove references to help garbage collection - delete cacheNode.parent; - delete cacheNode.parentKey; - delete cacheNode.result; - delete cacheNode.lruKey; } }, noDisposeOnSet: false, // Ensure dispose is called on eviction