We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 24b614c commit adce59eCopy full SHA for adce59e
src/useAsyncRetry.ts
@@ -20,7 +20,7 @@ const useAsyncRetry = <T>(fn: () => Promise<T>, deps: DependencyList = []) => {
20
}
21
22
setAttempt(currentAttempt => currentAttempt + 1);
23
- }, [...deps, stateLoading, attempt]);
+ }, [...deps, stateLoading]);
24
25
return { ...state, retry };
26
};
0 commit comments