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

Function queryFn

packages/solid-query/src/__tests__/useQuery.test.tsx:98–100  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

96
97 // it should infer the result type from a generic query function
98 function queryFn<T = string>(): Promise<T> {
99 return Promise.resolve({} as T)
100 }
101
102 const fromGenericQueryFn = useQuery(() => ({
103 queryKey: key,

Callers 1

PageFunction · 0.70

Calls 3

sleepFunction · 0.90
rejectFunction · 0.85
resolveFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…