From bb11f32a16b3a0a9af44c54c21d989029f181060 Mon Sep 17 00:00:00 2001 From: Marco Salazar Date: Fri, 20 Dec 2024 14:50:15 -0500 Subject: [PATCH] use symbol --- .../dagster-ui/packages/ui-core/src/util/weakMapMemoize.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 8699464a1479a..0eb6c84bc70e0 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 @@ -122,7 +122,7 @@ export function weakMapMemoize(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);