From b6d138e224251634068a79e67f0954b8c83cca18 Mon Sep 17 00:00:00 2001 From: YeonGyu-Kim Date: Sun, 14 Dec 2025 13:55:39 +0900 Subject: [PATCH] fix(enterprise): remove deferStream to fix share page hydration mismatch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit deferStream: true causes hydration issues with large share data (97KB+). Removing it ensures complete HTML generation before response, fixing blank page rendering on https://opncd.ai/share/* routes. 🤖 GENERATED WITH ASSISTANCE OF [OhMyOpenCode](https://github.com/code-yeongyu/oh-my-opencode) --- .../enterprise/src/routes/share/[shareID].tsx | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/packages/enterprise/src/routes/share/[shareID].tsx b/packages/enterprise/src/routes/share/[shareID].tsx index 7cce15906fb..8fe6f0c1bb4 100644 --- a/packages/enterprise/src/routes/share/[shareID].tsx +++ b/packages/enterprise/src/routes/share/[shareID].tsx @@ -138,18 +138,13 @@ const getData = query(async (shareID) => { export default function () { const params = useParams() - const data = createAsync( - async () => { - if (!params.shareID) throw new Error("Missing shareID") - const now = Date.now() - const data = getData(params.shareID) - console.log("getData", Date.now() - now) - return data - }, - { - deferStream: true, - }, - ) + const data = createAsync(async () => { + if (!params.shareID) throw new Error("Missing shareID") + const now = Date.now() + const data = getData(params.shareID) + console.log("getData", Date.now() - now) + return data + }) createEffect(() => { console.log(data())