Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
useQuery.test-d.tsx
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected