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

File usePrefetchQuery.test.tsx

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

Source from the content-addressed store, hash-verified

1import { queryKey, sleep } from '@tanstack/query-test-utils'
2import { act, fireEvent } from '@testing-library/preact'
3import type { VNode } from 'preact'
4import { Suspense } from 'preact/compat'

Callers

nothing calls this directly

Calls 7

queryKeyFunction · 0.90
sleepFunction · 0.90
renderWithClientFunction · 0.90
clearMethod · 0.45
fetchQueryMethod · 0.45
prefetchQueryMethod · 0.45
getQueryStateMethod · 0.45

Tested by

no test coverage detected