From 614bc7cf44f4840d7af27f500f48c5fa82fbe24d Mon Sep 17 00:00:00 2001 From: David Totraev Date: Wed, 15 Jan 2025 00:35:45 +0500 Subject: [PATCH] fix: issue with useSearchParams hook --- src/app/providers.tsx | 68 ++++++++++++++++++++++--------------------- 1 file changed, 35 insertions(+), 33 deletions(-) diff --git a/src/app/providers.tsx b/src/app/providers.tsx index a3fe3ce0..851c1a5a 100644 --- a/src/app/providers.tsx +++ b/src/app/providers.tsx @@ -5,7 +5,7 @@ import { QueryClient, QueryClientProvider } from "@tanstack/react-query"; import { ReactQueryDevtools } from "@tanstack/react-query-devtools"; import { ReactQueryStreamedHydration } from "@tanstack/react-query-next-experimental"; import { ThemeProvider } from "next-themes"; -import React from "react"; +import React, { Suspense } from "react"; import { NotificationContainer } from "./components/Notification/NotificationContainer"; import { ErrorProvider } from "./context/Error/ErrorContext"; @@ -20,38 +20,40 @@ function Providers({ children }: React.PropsWithChildren) { const [client] = React.useState(new QueryClient()); return ( - - - - - - - - - - - - {children} - - - - - - - - - - - - - + + + + + + + + + + + + + {children} + + + + + + + + + + + + + + ); }