Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TanStack/query
/ SecondQuery
Function
SecondQuery
packages/react-query/src/__tests__/useIsFetching.test.tsx:86–93 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
84
}
85
86
function SecondQuery() {
87
useQuery({
88
queryKey: key2,
89
queryFn: () => sleep(100).then(() =>
'data2'
),
90
})
91
92
return null
93
}
94
95
function Page() {
96
const [renderSecond, setRenderSecond] = React.useState(false)
Callers
nothing calls this directly
Calls
2
sleep
Function · 0.90
useQuery
Function · 0.50
Tested by
no test coverage detected