MCPcopy Create free account
hub / github.com/Nutlope/self.so / ReactQueryClientProvider

Function ReactQueryClientProvider

components/ReactQueryClientProvider.tsx:6–15  ·  view source on GitHub ↗
({
  children,
}: {
  children: React.ReactNode;
})

Source from the content-addressed store, hash-verified

4import { useState } from 'react';
5
6export const ReactQueryClientProvider = ({
7 children,
8}: {
9 children: React.ReactNode;
10}) => {
11 const [queryClient] = useState(() => new QueryClient({}));
12 return (
13 <QueryClientProvider client={queryClient}>{children}</QueryClientProvider>
14 );
15};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected