From a0f52809a695d9404ec19cfee637002421236a8c Mon Sep 17 00:00:00 2001 From: Lukas Germerott Date: Wed, 22 May 2024 21:08:29 +0200 Subject: [PATCH 1/2] fix: add error boundary to catch invalid code within the document code --- packages/start/src/server/StartServer.tsx | 96 ++++++++++--------- packages/start/src/server/spa/StartServer.tsx | 69 ++++++------- 2 files changed, 85 insertions(+), 80 deletions(-) diff --git a/packages/start/src/server/StartServer.tsx b/packages/start/src/server/StartServer.tsx index 66aa2c443..27ea3863b 100644 --- a/packages/start/src/server/StartServer.tsx +++ b/packages/start/src/server/StartServer.tsx @@ -70,59 +70,61 @@ export function StartServer(props: { document: Component return ( {docType as unknown as any} - - - {context.assets.map((m: any) => renderAsset(m, nonce))} - - } - scripts={ - nonce ? ( + + -