MCPcopy Create free account
hub / github.com/TanStack/query / Example

Function Example

packages/preact-query/src/__tests__/useQuery.test.tsx:6710–6713  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6708 const consoleErrorMock = vi.spyOn(console, 'error')
6709 const key = queryKey()
6710 function Example() {
6711 useQuery({ queryKey: key })
6712 return <></>
6713 }
6714 renderWithClient(queryClient, <Example />)
6715
6716 expect(consoleErrorMock).toHaveBeenCalledTimes(1)

Callers

nothing calls this directly

Calls 1

useQueryFunction · 0.50

Tested by

no test coverage detected