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);