diff --git a/src/internal.ts b/src/internal.ts index 01d980c..92adfc1 100644 --- a/src/internal.ts +++ b/src/internal.ts @@ -491,7 +491,10 @@ export async function letsCandidate({ staleMap, HookPayload }) - ); + ).catch((error: Error) => { + runningQueryCache.delete(key); + throw error; + }); return execution; }