🚚 rename react-query-provider to TanstackQueryProvider

This commit is contained in:
Fred KISSIE
2025-12-03 16:58:40 +01:00
parent f5bfddd262
commit cb3861a5c8
2 changed files with 4 additions and 4 deletions

View File

@@ -20,7 +20,7 @@ import { Toaster } from "@app/components/ui/toaster";
import { build } from "@server/build";
import { TopLoader } from "@app/components/Toploader";
import Script from "next/script";
import { ReactQueryProvider } from "@app/components/react-query-provider";
import { TanstackQueryProvider } from "@app/components/TanstackQueryProvider";
export const metadata: Metadata = {
title: `Dashboard - ${process.env.BRANDING_APP_NAME || "Pangolin"}`,
@@ -95,7 +95,7 @@ export default async function RootLayout({
strategy="afterInteractive"
/>
)}
<ReactQueryProvider>
<TanstackQueryProvider>
<NextIntlClientProvider>
<ThemeProvider
attribute="class"
@@ -128,7 +128,7 @@ export default async function RootLayout({
</ThemeDataProvider>
</ThemeProvider>
</NextIntlClientProvider>
</ReactQueryProvider>
</TanstackQueryProvider>
</body>
</html>
);

View File

@@ -8,7 +8,7 @@ export type ReactQueryProviderProps = {
children: React.ReactNode;
};
export function ReactQueryProvider({ children }: ReactQueryProviderProps) {
export function TanstackQueryProvider({ children }: ReactQueryProviderProps) {
const [queryClient] = React.useState(
() =>
new QueryClient({