Skip to content

Connect, collaborate, and grow with a community of TypeScript developers

fix: lol this is bad

bautistaaa3d8d9dde01ed
diff --git a/apps/web/src/app/[locale]/providers.tsx b/apps/web/src/app/[locale]/providers.tsx
index 0dd4ccd9..4e3c3b0f 100644
--- a/apps/web/src/app/[locale]/providers.tsx
+++ b/apps/web/src/app/[locale]/providers.tsx
@@ -13,9 +13,9 @@ interface Props {
children: React.ReactNode;
}
-const queryClient = new QueryClient();
-
export function Providers({ children }: Props) {
+ const [queryClient] = React.useState(() => new QueryClient());
+
return (
<QueryClientProvider client={queryClient}>
<ReactQueryDevtools initialIsOpen={false} buttonPosition="bottom-right" />