RequestRetryEventType
Event of a failed attempt which scheduled a retry. It comes after the response of that attempt and before the
request waits
delay
milliseconds to be sent again.
Import
import { RequestRetryEventType } from "@hyper-fetch/core"
Source
Package
Preview
type RequestRetryEventType<T> = RequestResponseEventType<T> & { delay: number; retry: number };
Structure
RequestRetryEventType
| Name | Type | Description |
|---|---|---|
| details | | |
| mutationContext | | Result of the optimistic callback - available in the callbacks of
|
| request | | |
| requestId | | |
| response | | |
| delay | | Time in milliseconds the request waits before it is sent again |
| retry | | Number of the scheduled retry, counted from 1 - the request makes up to
|