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

Function queryFn

packages/vue-query/src/__tests__/usePrefetchInfiniteQuery.test.ts:19–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17 const queryClient = new QueryClient()
18 const infiniteQuerySpy = vi.spyOn(queryClient, 'infiniteQuery')
19 const queryFn = () =>
20 Promise.resolve({ data: 'prefetched', currentPage: 1 })
21 const getNextPageParam = () => undefined
22
23 const key = createKey()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected