Skip to content

Commit

Permalink
fix: promise errors are now thrown correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Cadienvan committed Dec 9, 2024
1 parent a808d77 commit 7a9b62c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/internal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,10 @@ export async function letsCandidate({
staleMap,
HookPayload
})
);
).catch((error: Error) => {
runningQueryCache.delete(key);
throw error;
});

return execution;
}
Expand Down

0 comments on commit 7a9b62c

Please sign in to comment.