Skip to content

Commit

Permalink
simple
Browse files Browse the repository at this point in the history
  • Loading branch information
salazarm committed Dec 20, 2024
1 parent c9d2ede commit f40c8e4
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,6 @@ export function weakMapMemoize<T extends AnyFunction>(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
Expand Down

0 comments on commit f40c8e4

Please sign in to comment.