MCPcopy Create free account
hub / github.com/TanStack/query / willFetch

Function willFetch

packages/preact-query/src/suspense.ts:50–53  ·  view source on GitHub ↗
(
  result: QueryObserverResult<any, any>,
  isRestoring: boolean,
)

Source from the content-addressed store, hash-verified

48}
49
50export const willFetch = (
51 result: QueryObserverResult<any, any>,
52 isRestoring: boolean,
53) => result.isLoading && result.isFetching && !isRestoring
54
55export const shouldSuspend = (
56 defaultedOptions:

Callers 1

useBaseQueryFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected