From 2d53c8c5bb5a66f79aafd12bbc5bd5f1816a8b7a Mon Sep 17 00:00:00 2001 From: Mohammad Bagher Abiyat Date: Sat, 9 Mar 2024 10:22:40 +0330 Subject: [PATCH] fix: remix spa #988 --- packages/react-server/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-server/index.ts b/packages/react-server/index.ts index 959acf3672..dd0eebd521 100644 --- a/packages/react-server/index.ts +++ b/packages/react-server/index.ts @@ -232,7 +232,7 @@ export const createSSRBoundary =

( } : { dangerouslySetInnerHTML: { - __html: document.getElementById(id)!.innerHTML, + __html: document.getElementById(id)?.innerHTML || "", }, }; if (ssrElementsMap.has(id)) {