Skip to content

Commit

Permalink
use symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
salazarm committed Dec 20, 2024
1 parent d6fd380 commit bb11f32
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ export function weakMapMemoize<T extends AnyFunction>(fn: T, options?: WeakMapMe

// If LRU cache is enabled, manage the cache entries
if (lruCache) {
const cacheEntryKey: any[] = path.slice(); // Clone the path to ensure uniqueness
const cacheEntryKey = Symbol();
currentCache.lruKey = cacheEntryKey; // Associate the cache node with the LRU key

lruCache.set(cacheEntryKey, currentCache);
Expand Down

0 comments on commit bb11f32

Please sign in to comment.