From 2041820e30c4c909a0f22a407fcb0ebba1889faa Mon Sep 17 00:00:00 2001 From: Muhammad Date: Sun, 15 Dec 2024 21:49:46 +0700 Subject: [PATCH] temporary workaround 3 --- packages/vike-react-styled-jsx/Wrapper.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/vike-react-styled-jsx/Wrapper.tsx b/packages/vike-react-styled-jsx/Wrapper.tsx index 9c588670..ff94e8b9 100644 --- a/packages/vike-react-styled-jsx/Wrapper.tsx +++ b/packages/vike-react-styled-jsx/Wrapper.tsx @@ -9,8 +9,8 @@ function Wrapper({ children }: { children: ReactNode }) { if (pageContext.config.styledJsx === null) return <>{children} - if ('styledJsx' in pageContext && pageContext.styledJsx?.registry) { - return {children} + if ('styledJsx' in pageContext) { + return {children} } return <>{children} }