MCPcopy Create free account
hub / github.com/TanStack/query / queryCache.test.tsx

File queryCache.test.tsx

packages/query-core/src/__tests__/queryCache.test.tsx:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { createKey, sleep } from '@tanstack/query-test-utils'
2import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
3import { QueryCache, QueryClient, QueryObserver, hashKey, noop } from '..'
4import type { DefaultError, Query, QueryCacheNotifyEvent } from '..'

Callers

nothing calls this directly

Calls 15

createKeyFunction · 0.90
sleepFunction · 0.90
hashKeyFunction · 0.85
getQueryCacheMethod · 0.80
getMethod · 0.80
unsubscribeFunction · 0.50
clearMethod · 0.45
subscribeMethod · 0.45
setQueryDataMethod · 0.45
findMethod · 0.45
queryMethod · 0.45
getAllMethod · 0.45

Tested by

no test coverage detected