mirror of
https://github.com/hex248/sprint.git
synced 2026-02-09 02:33:02 +00:00
added tanstack query packages and provider components
This commit is contained in:
13
packages/frontend/src/components/query-provider.tsx
Normal file
13
packages/frontend/src/components/query-provider.tsx
Normal file
@@ -0,0 +1,13 @@
|
||||
import { QueryClientProvider } from "@tanstack/react-query";
|
||||
import { ReactQueryDevtools } from "@tanstack/react-query-devtools";
|
||||
import type { ReactNode } from "react";
|
||||
import { queryClient } from "@/lib/query/client";
|
||||
|
||||
export function QueryProvider({ children }: { children: ReactNode }) {
|
||||
return (
|
||||
<QueryClientProvider client={queryClient}>
|
||||
{children}
|
||||
<ReactQueryDevtools initialIsOpen={false} />
|
||||
</QueryClientProvider>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user