Skip to main content
Version: v7.0.0

UseRequestEventsPropsType


Import
import { UseRequestEventsPropsType } from "@hyper-fetch/react"

Preview

type UseRequestEventsPropsType<T> = {
actions: UseTrackedStateActions<T>;
dispatcher: Dispatcher<ExtractAdapterType<T>>;
getIsDataProcessing: (cacheKey: string) => boolean;
logger: LoggerMethods;
request: T;
setCacheData: (cacheData: CacheValueType<ExtractResponseType<T>, ExtractErrorType<T>>) => void;
}

Structure

UseRequestEventsPropsType
NameTypeDescription
actions
UseTrackedStateActions<T>
dispatcher
Dispatcher<ExtractAdapterType<T>>
logger
LoggerMethods
request
T
getIsDataProcessing
(cacheKey: string) => boolean
setCacheData
(cacheData: CacheValueType<ExtractResponseType<T>, ExtractErrorType<T>>) => void
React
On this page