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

Function Example

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

Source from the content-addressed store, hash-verified

6675 const consoleErrorMock = vi.spyOn(console, 'error')
6676 const key = queryKey()
6677 function Example() {
6678 useQuery({ queryKey: key })
6679 return <></>
6680 }
6681 renderWithClient(queryClient, <Example />)
6682
6683 expect(consoleErrorMock).toHaveBeenCalledTimes(1)

Callers

nothing calls this directly

Calls 1

useQueryFunction · 0.50

Tested by

no test coverage detected