DbOfflineOptions
Import
import { DbOfflineOptions } from "@hyper-fetch/db"
Source
Package
Preview
type DbOfflineOptions = {
retryDelay?: (attempt: number) => number;
retryable?: (response: ResponseType<unknown, unknown, any>) => boolean;
}
Structure
DbOfflineOptions
| Name | Type | Description |
|---|---|---|
| retryDelay | | Delay before retrying a temporary failure |
| retryable | | Whether a failed replay is temporary and retried, or permanent and dropped. By default a 4xx response other than 408 and 429 is permanent. |
