Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TanStack/query
/ queryFn
Function
queryFn
packages/react-query/src/__tests__/useQuery.test.tsx:2298–2298 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
2296
const key = queryKey()
2297
2298
const queryFn = () => sleep(10).then(() =>
'data1'
)
2299
2300
function Page() {
2301
useQuery({ queryKey: key, queryFn, retryDelay: 10 })
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