From 3f07ebf87903c00fcab13b5f2fcc0c255e1c410e Mon Sep 17 00:00:00 2001 From: regalijan Date: Thu, 19 Oct 2023 16:50:22 -0400 Subject: [PATCH] Set style nonce in root styles --- app/root.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/root.tsx b/app/root.tsx index 2a599a4..f419f52 100644 --- a/app/root.tsx +++ b/app/root.tsx @@ -113,6 +113,7 @@ export async function loader({ if (context.data.current_user) data = { ...context.data.current_user }; if (context.env.DSN) data.dsn = context.env.DSN; + if (context.data.nonce) data.nonce = context.data.nonce; if (context.data.theme) data.theme = context.data.theme; return data; @@ -175,6 +176,7 @@ function getMarkup( {serverStyleData?.map(({ key, ids, css }) => (