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

Function fetchData

packages/query-core/src/__tests__/queryClient.test.tsx:55–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53 })
54
55 const fetchData = () => Promise.resolve('data')
56 await testClient.prefetchQuery({ queryKey: key, queryFn: fetchData })
57 const newQuery = testClient.getQueryCache().find({ queryKey: key })
58 expect(newQuery?.options.gcTime).toBe(Infinity)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected