Unverified Commit 4c23bac3 authored by Sebastian Silbermann's avatar Sebastian Silbermann Committed by GitHub

fix: use latest experimental method names (#12669)

parent 80f11944
...@@ -371,8 +371,8 @@ function renderReactElement(reactEl, domEl) { ...@@ -371,8 +371,8 @@ function renderReactElement(reactEl, domEl) {
const opts = { hydrate: true } const opts = { hydrate: true }
reactRoot = reactRoot =
process.env.__NEXT_REACT_MODE === 'concurrent' process.env.__NEXT_REACT_MODE === 'concurrent'
? ReactDOM.createRoot(domEl, opts) ? ReactDOM.unstable_createRoot(domEl, opts)
: ReactDOM.createBlockingRoot(domEl, opts) : ReactDOM.unstable_createBlockingRoot(domEl, opts)
} }
reactRoot.render(reactEl) reactRoot.render(reactEl)
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment