Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
Page
Function · 0.70
Calls
3
sleep
Function · 0.90
reject
Function · 0.85
resolve
Function · 0.85
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…