mirror of
https://github.com/docmost/docmost.git
synced 2026-05-16 22:41:30 +08:00
15 lines
339 B
TypeScript
15 lines
339 B
TypeScript
"use client"
|
|
|
|
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
|
import React from "react";
|
|
|
|
const queryClient = new QueryClient();
|
|
|
|
export function TanstackProvider({ children }: React.PropsWithChildren) {
|
|
return (
|
|
<QueryClientProvider client={queryClient}>
|
|
{children}
|
|
</QueryClientProvider>
|
|
);
|
|
}
|