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

Function queryFn

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected