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

Function Example

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

Source from the content-addressed store, hash-verified

6742 const consoleErrorMock = vi.spyOn(console, 'error')
6743 const key = createKey()
6744 function Example() {
6745 useQuery({ queryKey: key })
6746 return <></>
6747 }
6748 renderWithClient(queryClient, <Example />)
6749
6750 expect(consoleErrorMock).toHaveBeenCalledTimes(1)

Callers

nothing calls this directly

Calls 1

useQueryFunction · 0.50

Tested by

no test coverage detected