Skip to main content
Version: v8.0.0

UseIsFetchingOptionsType


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

Preview​

type UseIsFetchingOptionsType = {
predicate?: (request: RequestInstance) => boolean;
queryKey?: string | RegExp;
}

Structure​

UseIsFetchingOptionsType
NameTypeDescription
queryKey
string | RegExp

Count only the requests with matching queryKey - exact string or RegExp

predicate
(request: RequestInstance) => boolean

Count only the requests for which the predicate returns true