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

Function Example

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

Source from the content-addressed store, hash-verified

6714 const consoleErrorMock = vi.spyOn(console, 'error')
6715 const key = queryKey()
6716 function Example() {
6717 useQuery({ queryKey: key })
6718 return <></>
6719 }
6720 renderWithClient(queryClient, <Example />)
6721
6722 expect(consoleErrorMock).toHaveBeenCalledTimes(1)

Callers

nothing calls this directly

Calls 1

useQueryFunction · 0.50

Tested by

no test coverage detected