Skip to content

Commit

Permalink
temporary workaround 3
Browse files Browse the repository at this point in the history
  • Loading branch information
phonzammi committed Dec 15, 2024
1 parent 008773b commit 2041820
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/vike-react-styled-jsx/Wrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ function Wrapper({ children }: { children: ReactNode }) {

if (pageContext.config.styledJsx === null) return <>{children}</>

if ('styledJsx' in pageContext && pageContext.styledJsx?.registry) {
return <StyleRegistry registry={pageContext.styledJsx.registry}>{children}</StyleRegistry>
if ('styledJsx' in pageContext) {
return <StyleRegistry registry={pageContext.styledJsx?.registry}>{children}</StyleRegistry>
}
return <>{children}</>
}

0 comments on commit 2041820

Please sign in to comment.