Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TanStack/query
/ numberGenerator
Function
numberGenerator
packages/vue-query/src/__tests__/useQuery.test.ts:642–647 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
640
const
key = queryKey()
641
642
async
function
* numberGenerator() {
643
await
sleep(10)
644
yield
'chunk1'
645
await
sleep(10)
646
yield
'chunk2'
647
}
648
649
const
query = useQuery({
650
queryKey: key,
Callers
1
useQuery.test.ts
File · 0.70
Calls
1
sleep
Function · 0.90
Tested by
no test coverage detected