getCacheData
import { getCacheData } from "@hyper-fetch/core"
Description
Defined in cache/cache.utils.ts:5
Preview
getCacheData<T>(previousResponse, response)
Parameters
Name | Details |
---|---|
previousResponse
|
|
response
|
|
Returns
{
data: GenericDataType | null;
error: GenericErrorType | null;
extra: T extends AdapterType<any, any, any, infer A, any> ? A : never | null;
status: T extends AdapterType<any, any, infer S, any, any> ? S : never | null;
success: boolean;
isCanceled: boolean;
isOffline: boolean;
retries: number;
timestamp: number;
}