Commit 80139a9a by G

a component to provide react query client to all its children

parent 32be95b0
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
const ProvideQueryClient = ({ children }: { children: React.ReactNode }) => {
const queryClient = new QueryClient();
return <QueryClientProvider client={queryClient}>{children}</QueryClientProvider>;
};
export default ProvideQueryClient;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment