MCPcopy Create free account
hub / github.com/HuolalaTech/react-query-kit / createSuspenseQuery

Function createSuspenseQuery

src/createSuspenseQuery.ts:9–19  ·  view source on GitHub ↗
(
  options: CreateSuspenseQueryOptions<TFnData, TVariables, TError>
)

Source from the content-addressed store, hash-verified

7import { ReactQuery, isV5, suspenseOptions } from './utils'
8
9export function createSuspenseQuery<
10 TFnData,
11 TVariables = void,
12 TError = CompatibleError
13>(
14 options: CreateSuspenseQueryOptions<TFnData, TVariables, TError>
15): SuspenseQueryHook<TFnData, TVariables, TError> {
16 return isV5
17 ? createBaseQuery(options, ReactQuery.useSuspenseQuery)
18 : createBaseQuery(options, ReactQuery.useQuery, suspenseOptions)
19}

Callers 1

buildRouterFunction · 0.90

Calls 1

createBaseQueryFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…