MCPcopy
hub / github.com/TanStack/query / willFetch

Function willFetch

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

Source from the content-addressed store, hash-verified

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

Callers 2

useBaseQueryFunction · 0.90
useQueriesFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…