We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
maxAge
1 parent 3a5eb3d commit 24832a5Copy full SHA for 24832a5
index.ts
@@ -142,6 +142,7 @@ export default function memoize<
142
if (computedMaxAge && computedMaxAge > 0 && computedMaxAge !== Number.POSITIVE_INFINITY) {
143
const timer = setTimeout(() => {
144
cache.delete(key);
145
+ cacheTimerStore.get(function_)?.delete(timer as unknown as number);
146
}, computedMaxAge);
147
148
timer.unref?.();
0 commit comments