UseFetchOptionsType
import { UseFetchOptionsType } from "@hyper-fetch/react"
Description
Defined in hooks/use-fetch/use-fetch.types.ts:7
Preview
type UseFetchOptionsType<T> = {
bounce: boolean;
bounceTime: number;
bounceType: debounce | throttle;
deepCompare: boolean | typeof isEqual;
dependencies: any[];
dependencyTracking: boolean;
disabled: boolean;
initialData: CacheValueType<ExtractResponse<T>, ExtractError<T>>[data] | null;
refresh: boolean;
refreshBlurred: boolean;
refreshOnBlur: boolean;
refreshOnFocus: boolean;
refreshOnReconnect: boolean;
refreshTime: number;
revalidateOnMount: boolean;
}
Structure
{
bounce: boolean;
bounceTime: number;
bounceType: debounce | throttle;
deepCompare: boolean | typeof isEqual;
dependencies: any[];
dependencyTracking: boolean;
disabled: boolean;
initialData: ClientResponseType<Response, Error> | null;
refresh: boolean;
refreshBlurred: boolean;
refreshOnBlur: boolean;
refreshOnFocus: boolean;
refreshOnReconnect: boolean;
refreshTime: number;
revalidateOnMount: boolean;
}