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

Function renderWithClient

packages/solid-query/src/__tests__/utils.tsx:10–17  ·  view source on GitHub ↗
(
  client: QueryClient,
  ui: () => JSX.Element,
)

Source from the content-addressed store, hash-verified

8import type { QueryClient } from '..'
9
10export function renderWithClient(
11 client: QueryClient,
12 ui: () => JSX.Element,
13): ReturnType<typeof render> {
14 return render(() => (
15 <QueryClientProvider client={client}>{ui()}</QueryClientProvider>
16 ))
17}
18
19export function Blink(
20 props: {

Calls 1

renderFunction · 0.85

Tested by

no test coverage detected