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

Function fetchData

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

Source from the content-addressed store, hash-verified

63 })
64
65 const fetchData = () => Promise.resolve('data')
66 await testClient.query({ queryKey: key, queryFn: fetchData }).catch(noop)
67 const newQuery = testClient.getQueryCache().find({ queryKey: key })
68 expect(newQuery?.options.gcTime).toBe(Infinity)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected