mirror of
https://github.com/aljazceru/claude-code-viewer.git
synced 2025-12-28 02:34:21 +01:00
20 lines
457 B
TypeScript
20 lines
457 B
TypeScript
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
|
import type { FC, PropsWithChildren } from "react";
|
|
|
|
const queryClient = new QueryClient({
|
|
defaultOptions: {
|
|
queries: {
|
|
refetchOnWindowFocus: true,
|
|
retry: false,
|
|
},
|
|
},
|
|
});
|
|
|
|
export const QueryClientProviderWrapper: FC<PropsWithChildren> = ({
|
|
children,
|
|
}) => {
|
|
return (
|
|
<QueryClientProvider client={queryClient}>{children}</QueryClientProvider>
|
|
);
|
|
};
|