Skip to content

Commit

Permalink
Remove unnecessary AppContainer wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
devknoll committed Nov 6, 2021
1 parent 9e774c8 commit 8319171
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions packages/next/server/render.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -989,15 +989,13 @@ export async function renderToHTML(
enhanceComponents(options, App, Component)

const html = ReactDOMServer.renderToString(
<AppContainer>
{getWrappedApp(
<EnhancedApp
Component={EnhancedComponent}
router={router}
{...props}
/>
)}
</AppContainer>
getWrappedApp(
<EnhancedApp
Component={EnhancedComponent}
router={router}
{...props}
/>
)
)
return { html, head }
}
Expand Down

0 comments on commit 8319171

Please sign in to comment.