mirror of
https://github.com/supabase/supabase.git
synced 2026-10-18 07:39:07 +03:00
22 lines
503 B
TypeScript
22 lines
503 B
TypeScript
"use client";
|
|
|
|
import { QueryClientProvider } from "@tanstack/react-query";
|
|
import { ReactQueryDevtools } from "@tanstack/react-query-devtools";
|
|
import type * as React from "react";
|
|
import { getQueryClient } from "./get-query-client";
|
|
|
|
export function ReactQueryProvider({
|
|
children,
|
|
}: {
|
|
children: React.ReactNode;
|
|
}) {
|
|
const queryClient = getQueryClient();
|
|
|
|
return (
|
|
<QueryClientProvider client={queryClient}>
|
|
{children}
|
|
<ReactQueryDevtools />
|
|
</QueryClientProvider>
|
|
);
|
|
}
|