Skip to main content
Version: 4.x.x

UseTrackedStateProps


import { UseTrackedStateProps } from "@hyper-fetch/react"

Description

Defined in react/src/helpers/use-tracked-state/use-tracked-state.types.ts:16

Preview

type UseTrackedStateProps<T> = {
deepCompare: boolean | typeof isEqual;
defaultCacheEmitting: boolean;
dependencyTracking: boolean;
dispatcher: Dispatcher;
initialData: ResponseReturnType<ExtractResponseType<T>, ExtractErrorType<T>, ExtractAdapterType<T>> | null;
logger: LoggerType;
request: T;
}

Structure

{
deepCompare: boolean | typeof isEqual;
defaultCacheEmitting: boolean;
dependencyTracking: boolean;
dispatcher: Dispatcher;
initialData: {data:GenericDataType | null,error:GenericErrorType | null,extra:ExtractAdapterExtraType<Adapter> | null,status:ExtractAdapterStatusType<Adapter> | null,success:boolean} | null;
logger: Record<LoggerLevelType, (message: LoggerMessageType, ...extra: LoggerMessageType[]) => void>;
request: T;
}