Skip to content

Type Alias: FetchRetryOptions

FetchRetryOptions = Omit<Partial<RetryOptions>, "retry" | "retryIf"> & object

Defined in: packages/fetch/src/types.ts:290

Fetch retry options

Type Declaration

retry?

optional retry: number

Maximum number of retries.

The total number of attempts will be retry + 1.

Default: 0

retryIf?

optional retryIf: null | (response, retryCount, error?) => boolean | Promise<boolean>