Skip to content

Commit

Permalink
fix app tree
Browse files Browse the repository at this point in the history
  • Loading branch information
huozhi committed Jan 10, 2022
1 parent ae3f51c commit 0c99a8c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/next/server/render.tsx
Expand Up @@ -661,7 +661,11 @@ export async function renderToHTML(
locales: renderOpts.locales,
defaultLocale: renderOpts.defaultLocale,
AppTree: (props: any) => {
return renderApp(App, Component, router, props, isServerComponent)
return (
<AppContainerWithIsomorphicFiberStructure>
{renderApp(App, Component, router, props, isServerComponent)}
</AppContainerWithIsomorphicFiberStructure>
)
},
defaultGetInitialProps: async (
docCtx: DocumentContext,
Expand Down

0 comments on commit 0c99a8c

Please sign in to comment.