mirror of
https://github.com/docmost/docmost.git
synced 2025-11-18 18:11:10 +10:00
Implement frontend auth and user features - WIP
This commit is contained in:
14
frontend/src/components/providers/tanstack-provider.tsx
Normal file
14
frontend/src/components/providers/tanstack-provider.tsx
Normal file
@ -0,0 +1,14 @@
|
||||
"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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user