mirror of
https://github.com/ForFarmTeam/ForFarm.git
synced 2025-12-19 05:54:08 +01:00
13 lines
386 B
TypeScript
13 lines
386 B
TypeScript
"use client";
|
|
|
|
import { QueryClientProvider, QueryClient } from "@tanstack/react-query";
|
|
import { useState } from "react";
|
|
|
|
const ReactQueryProvider = ({ children }: { children: React.ReactNode }) => {
|
|
const [queryClient] = useState(() => new QueryClient());
|
|
|
|
return <QueryClientProvider client={queryClient}>{children}</QueryClientProvider>;
|
|
};
|
|
|
|
export default ReactQueryProvider;
|