Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TanStack/query
/ queryObserver.test.tsx
File
queryObserver.test.tsx
packages/query-core/src/__tests__/queryObserver.test.tsx:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import { createKey, sleep } from
'@tanstack/query-test-utils'
2
import { afterEach, beforeEach, describe, expect, it, vi } from
'vitest'
3
import {
4
QueryClient,
Callers
nothing calls this directly
Calls
15
createKey
Function · 0.90
sleep
Function · 0.90
setIsServer
Function · 0.90
unsubscribeFirst
Function · 0.85
refetch
Method · 0.80
updateResult
Method · 0.80
getQueryCache
Method · 0.80
getCurrentQuery
Method · 0.80
setFocused
Method · 0.80
shouldFetchOnWindowFocus
Method · 0.80
fetchOptimistic
Method · 0.80
trackProp
Method · 0.80
Tested by
no test coverage detected