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
{
additionalData: T extends BaseAdapterType<any, any, any, infer A, any> ? A : never | null;
data: GenericDataType | null;
error: GenericErrorType | null;
isSuccess: boolean;
status: T extends BaseAdapterType<any, any, infer S, any, any> ? S : never | null;
isCanceled: boolean;
isOffline: boolean;
retries: number;
timestamp: number;
}