UseCacheOptionsType
Import
import { UseCacheOptionsType } from "@hyper-fetch/react"
Source
Package
Preview
type UseCacheOptionsType<T> = {
deepCompare?: boolean | typeof isEqual;
dependencyTracking?: boolean;
initialResponse?: CacheValueType<ExtractResponseType<T>, ExtractErrorType<T>>[data] | null;
}
Structure
UseCacheOptionsType
| Name | Type | Description |
|---|---|---|
| deepCompare | | Deep comparison function for hook to check for equality in incoming data, to limit rerenders. |
| dependencyTracking | | If
|
| initialResponse | | If cache is empty we can use placeholder data. |