MCPcopy Index your code
hub / github.com/TanStack/query / queryFn

Function queryFn

packages/react-query/src/__tests__/useQuery.test-d.tsx:60–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58
59 // it should infer the result type from a generic query function
60 function queryFn<T = string>(): Promise<T> {
61 return Promise.resolve({} as T)
62 }
63
64 const fromGenericQueryFn = useQuery({
65 queryKey: key,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…