first MVP
This commit is contained in:
9
src/app/providers.tsx
Normal file
9
src/app/providers.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
"use client";
|
||||
|
||||
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
||||
import { ReactNode, useState } from "react";
|
||||
|
||||
export default function Providers({ children }: { children: ReactNode }) {
|
||||
const [client] = useState(() => new QueryClient());
|
||||
return <QueryClientProvider client={client}>{children}</QueryClientProvider>;
|
||||
}
|
||||
Reference in New Issue
Block a user