All checks were successful
UI Deploy (Next-Auth Support) 🎨 / build-and-deploy (push) Successful in 2m39s
17 lines
374 B
TypeScript
17 lines
374 B
TypeScript
"use client";
|
|
|
|
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
|
import { ReactNode } from "react";
|
|
|
|
interface Props {
|
|
children: ReactNode;
|
|
}
|
|
|
|
export default function ReactQueryProvider({ children }: Props) {
|
|
const queryClient = new QueryClient();
|
|
|
|
return (
|
|
<QueryClientProvider client={queryClient}>{children}</QueryClientProvider>
|
|
);
|
|
}
|