From c3f52f8fa0070e6e31427602fc8f6105c9115a74 Mon Sep 17 00:00:00 2001 From: Stephen Zhou <38493346+hyoban@users.noreply.github.com> Date: Fri, 13 Feb 2026 11:41:29 +0800 Subject: [PATCH] fix: skip ssr for main app --- .../plugins/marketplace/hydration-client.tsx | 2 +- .../plugins/marketplace/hydration-server.tsx | 4 +++- web/app/components/plugins/marketplace/index.tsx | 10 ++++++++-- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/web/app/components/plugins/marketplace/hydration-client.tsx b/web/app/components/plugins/marketplace/hydration-client.tsx index 8a2ab6f691..59507bed9f 100644 --- a/web/app/components/plugins/marketplace/hydration-client.tsx +++ b/web/app/components/plugins/marketplace/hydration-client.tsx @@ -8,7 +8,7 @@ export function HydrateClient({ children, }: { isMarketplacePlatform?: boolean - children?: React.ReactNode + children: React.ReactNode }) { useHydrateAtoms([ [isMarketplacePlatformAtom, isMarketplacePlatform], diff --git a/web/app/components/plugins/marketplace/hydration-server.tsx b/web/app/components/plugins/marketplace/hydration-server.tsx index c87a846c5c..acef5d5d20 100644 --- a/web/app/components/plugins/marketplace/hydration-server.tsx +++ b/web/app/components/plugins/marketplace/hydration-server.tsx @@ -252,13 +252,15 @@ async function getDehydratedState( export async function HydrateQueryClient({ params, searchParams, + isMarketplacePlatform = false, children, }: { params?: Awaitable<{ category?: string, creationType?: string, searchTab?: string } | undefined> searchParams?: Awaitable + isMarketplacePlatform?: boolean children: React.ReactNode }) { - const dehydratedState = await getDehydratedState(params, searchParams) + const dehydratedState = isMarketplacePlatform ? await getDehydratedState(params, searchParams) : null return ( diff --git a/web/app/components/plugins/marketplace/index.tsx b/web/app/components/plugins/marketplace/index.tsx index 28c0734df7..268f8bd43f 100644 --- a/web/app/components/plugins/marketplace/index.tsx +++ b/web/app/components/plugins/marketplace/index.tsx @@ -30,8 +30,14 @@ const Marketplace = ({ }: MarketplaceProps) => { return ( - - + +