AxiosRetryEvents
ts
type AxiosRetryEvents = object;Defined in: types.ts:10
Lifecycle for retries
Since
1.0.0
Author
Simon Kovtyk
Properties
onMaxRetry
ts
onMaxRetry: (attempts, error?, response?) => void;Defined in: types.ts:31
If the last retry is called
Parameters
| Parameter | Type |
|---|---|
attempts | number |
error? | AxiosError |
response? | AxiosResponse |
Returns
void
Since
1.0.0
Author
Simon Kovtyk
onMaxRetryExceeded
ts
onMaxRetryExceeded: (attempts, error?, response?) => void;Defined in: types.ts:38
If a retry was called but exceeds the retry count
Parameters
| Parameter | Type |
|---|---|
attempts | number |
error? | AxiosError |
response? | AxiosResponse |
Returns
void
Since
1.0.0
Author
Simon Kovtyk
onRetry
ts
onRetry: (attempts, error?, response?) => void;Defined in: types.ts:17
Whenever a retry will happen
Parameters
| Parameter | Type |
|---|---|
attempts | number |
error? | AxiosError |
response? | AxiosResponse |
Returns
void
Since
1.0.0
Author
Simon Kovtyk
onRetryFailed
ts
onRetryFailed: (attempts, error) => void;Defined in: types.ts:24
If a retry fails for some reason
Parameters
| Parameter | Type |
|---|---|
attempts | number |
error | AxiosError |
Returns
void
Since
1.0.0
Author
Simon Kovtyk