Skip to content

Commit

Permalink
Use the browser implementation when reactRoot: true
Browse files Browse the repository at this point in the history
  • Loading branch information
devknoll committed Feb 9, 2022
1 parent 0f5d9dc commit 2a543cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/server/render.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1175,7 +1175,7 @@ export async function renderToHTML(
return inAmpMode ? children : <div id="__next">{children}</div>
}

const ReactDOMServer = hasConcurrentFeatures
const ReactDOMServer = reactRoot
? require('react-dom/server.browser')
: require('react-dom/server')

Expand Down

0 comments on commit 2a543cf

Please sign in to comment.