File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ export function useRetry(options: UseRetryOptions): UseRetryReturn {
100
100
setCurrentDelay ( null ) ;
101
101
clearTimers ( ) ;
102
102
// Increment attempt count when starting the retry
103
- setAttemptCount ( prev => prev + 1 ) ;
103
+ setAttemptCount ( ( prev ) => prev + 1 ) ;
104
104
105
105
try {
106
106
await onRetryEvent ( ) ;
@@ -122,7 +122,7 @@ export function useRetry(options: UseRetryOptions): UseRetryReturn {
122
122
}
123
123
124
124
// Calculate delay based on attempt - 1 (so first retry gets initialDelay)
125
- const delay = calculateDelay ( Math . max ( 0 , attempt - 1 ) ) ;
125
+ const delay = calculateDelay ( Math . max ( 0 , attempt - 1 ) ) ;
126
126
setCurrentDelay ( delay ) ;
127
127
setTimeUntilNextRetry ( delay ) ;
128
128
startTimeRef . current = Date . now ( ) ;
You can’t perform that action at this time.
0 commit comments