ClientOptionsType
Configuration setup for the client
Import
import { ClientOptionsType } from "@hyper-fetch/core"
Source
Package
Preview
type ClientOptionsType<C> = {
appManager?: () => C[appManager];
cache?: () => C[cache];
fetchDispatcher?: () => C[submitDispatcher];
submitDispatcher?: () => C[fetchDispatcher];
url: string;
}
Structure
ClientOptionsType
| Name | Type | Description |
|---|---|---|
| url | | Url to your server |
| appManager | | Custom app manager initialization prop |
| cache | | Custom cache initialization prop |
| fetchDispatcher | | Custom fetch dispatcher initialization prop |
| submitDispatcher | | Custom submit dispatcher initialization prop |