mirror of
https://github.com/hex248/sprint.git
synced 2026-02-07 18:23:03 +00:00
14 lines
452 B
TypeScript
14 lines
452 B
TypeScript
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>
|
|
);
|
|
}
|