From 7634141c5086477b788e062b9fce618dbfae76f2 Mon Sep 17 00:00:00 2001 From: ner Date: Fri, 25 Sep 2026 16:06:00 +0300 Subject: [PATCH] perf(hydration): drop ReactQueryStreamedHydration HydrationBoundary hydrates the global context client, so __RQ was re-serializing the same dehydrated state into every page's HTML (10-15KB per page, 149KB on /person) and then hydrating the same client again. The boundary is now the single serialization and hydration path. --- providers/index.tsx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/providers/index.tsx b/providers/index.tsx index 06ea8be..2e44328 100644 --- a/providers/index.tsx +++ b/providers/index.tsx @@ -4,7 +4,6 @@ import { FC, ReactNode } from 'react'; import ModalContainer from 'react-modal-promise'; import { 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 { Toaster } from '@/components/ui/toaster'; @@ -19,9 +18,7 @@ const Providers: FC = ({ children }) => { return ( - - {children} - + {children}