getInitialState
import { getInitialState } from "@hyper-fetch/react"
Description
Defined in react/src/helpers/use-tracked-state/use-tracked-state.utils.ts:63
Preview
getInitialState<T>(initialData, dispatcher, request)
Parameters
Name | Details |
---|---|
initialData
|
|
dispatcher
|
|
request
|
|
Returns
{
data: null | T extends Request<infer D, any, any, any, any, any, any, any, any, any> ? D : never;
error: null | T extends Request<any, any, any, infer G, infer L, any, any, any, any, any> ? G | L : never;
extra: T extends AdapterType<any, any, any, infer A, any> ? A : never;
loading: boolean;
retries: number;
status: T extends AdapterType<any, any, infer S, any, any> ? S : never;
success: boolean;
timestamp: null | Date;
}