From 68e03c9e9ce79732824d00e44a0a1909bec268ce Mon Sep 17 00:00:00 2001 From: Rishabh Date: Fri, 22 May 2026 11:14:11 +0530 Subject: [PATCH] fix: add QueryClientProvider to SSR render tree Search component uses useQuery which requires QueryClientProvider. Was only in entry-client.tsx, now also in entry-server.tsx. Co-Authored-By: Claude Opus 4.6 (1M context) --- .../chronicle/src/server/entry-server.tsx | 31 ++++++++++--------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/packages/chronicle/src/server/entry-server.tsx b/packages/chronicle/src/server/entry-server.tsx index 55c8848..508e78f 100644 --- a/packages/chronicle/src/server/entry-server.tsx +++ b/packages/chronicle/src/server/entry-server.tsx @@ -14,6 +14,7 @@ import { getFirstApiUrl } from '@/lib/api-routes'; import { StatusCodes } from 'http-status-codes'; import { resolveDocsRedirect } from '@/lib/tree-utils'; import { isLocalImage, isSvg, buildOptimizedUrl, DEFAULT_WIDTH } from '@/lib/image-utils'; +import { QueryClientProvider, QueryClient } from '@tanstack/react-query'; import { useNitroApp } from 'nitro/app'; import { App } from './App'; @@ -136,20 +137,22 @@ export default {
- - - ({ content: null, toc: [] })} - > - - - - + + + + ({ content: null, toc: [] })} + > + + + + +
,