getValidCacheData
import { getValidCacheData } from "@hyper-fetch/react"
Description
Defined in react/src/helpers/use-tracked-state/use-tracked-state.utils.ts:35
Preview
getValidCacheData<T>(request, initialData, cacheData)
Parameters
Name | Details |
---|---|
request
|
|
initialData
|
|
cacheData
|
|
Returns
{
...params1: ResponseReturnType<Response, Error, Adapter>;
...params2: ResponseDetailsType;
cacheTime: number;
clearKey: string;
garbageCollection: number;
}