Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TanStack/query
/ Page2
Function
Page2
packages/preact-query/src/__tests__/QueryClientProvider.test.tsx:75–86 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
73
)
74
}
75
function Page2() {
76
const { data } = useQuery({
77
queryKey: key2,
78
queryFn: () => sleep(10).then(() =>
'test2'
),
79
})
80
81
return (
82
<div>
83
<h1>{data}</h1>
84
</div>
85
)
86
}
87
88
const rendered = render(
89
<>
Callers
nothing calls this directly
Calls
2
sleep
Function · 0.90
useQuery
Function · 0.50
Tested by
no test coverage detected