mirror of
https://github.com/multica-ai/multica.git
synced 2026-06-17 03:38:32 +02:00
16 lines
436 B
TypeScript
16 lines
436 B
TypeScript
"use client";
|
|
|
|
import { useState } from "react";
|
|
import { QueryClientProvider } from "@tanstack/react-query";
|
|
import { createQueryClient } from "./query-client";
|
|
import type { ReactNode } from "react";
|
|
|
|
export function QueryProvider({ children }: { children: ReactNode }) {
|
|
const [queryClient] = useState(createQueryClient);
|
|
return (
|
|
<QueryClientProvider client={queryClient}>
|
|
{children}
|
|
</QueryClientProvider>
|
|
);
|
|
}
|