Skip to main content
Version: 4.x.x

getDetailsState


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

Description

Defined in react/src/helpers/use-tracked-state/use-tracked-state.utils.ts:17

Preview

getDetailsState(state, details)

Parameters

NameDetails

state

Optional

UseTrackedStateType<RequestInstance>

details

Optional

Partial<ResponseDetailsType>

Returns

{
isCanceled: boolean;
isOffline: boolean;
retries: number;
timestamp: number;
}