Skip to main content
Version: 3.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: {additionalData:\ExtractAdapterAdditionalDataType<AdapterType>\ | \null\,data:\GenericDataType\ | \null\,error:\GenericErrorType\ | \null\,isSuccess:boolean,status:\ExtractAdapterStatusType<AdapterType>\ | \null\} | null;
logger: Record<LoggerLevelType, (message: LoggerMessageType, ...additionalData: LoggerMessageType[]) => void>;
request: T;
}