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

Function Page

packages/solid-query/src/__tests__/QueryClientProvider.test.tsx:24–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22 const queryClient = new QueryClient({ queryCache })
23
24 function Page() {
25 const query = useQuery(() => ({
26 queryKey: key,
27 queryFn: () => sleep(10).then(() => 'test'),
28 }))
29
30 return (
31 <div>
32 <h1>{query.data}</h1>
33 </div>
34 )
35 }
36
37 const rendered = render(() => (
38 <QueryClientProvider client={queryClient}>

Callers

nothing calls this directly

Calls 4

sleepFunction · 0.90
useQueryClientResolverFunction · 0.90
useQueryFunction · 0.50
useQueryClientFunction · 0.50

Tested by

no test coverage detected