File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -410,7 +410,7 @@ describe('ReactDOMRoot', () => {
410
410
// We care about this warning:
411
411
'You are calling ReactDOM.hydrate() on a container that was previously ' +
412
412
'passed to ReactDOM.unstable_createRoot(). This is not supported. ' +
413
- 'Did you mean to call root.render(element , {hydrate: true})?' ,
413
+ 'Did you mean to call createRoot(container , {hydrate: true}).render(element )?' ,
414
414
// This is more of a symptom but restructuring the code to avoid it isn't worth it:
415
415
'Replacing React-rendered children with a new root component.' ,
416
416
] ,
Original file line number Diff line number Diff line change @@ -656,7 +656,7 @@ const ReactDOM: Object = {
656
656
! container . _reactHasBeenPassedToCreateRootDEV ,
657
657
'You are calling ReactDOM.hydrate() on a container that was previously ' +
658
658
'passed to ReactDOM.%s(). This is not supported. ' +
659
- 'Did you mean to call root.render(element , {hydrate: true})?' ,
659
+ 'Did you mean to call createRoot(container , {hydrate: true}).render(element )?' ,
660
660
enableStableConcurrentModeAPIs ? 'createRoot' : 'unstable_createRoot' ,
661
661
) ;
662
662
}
Original file line number Diff line number Diff line change @@ -661,7 +661,7 @@ const ReactDOM: Object = {
661
661
! container . _reactHasBeenPassedToCreateRootDEV ,
662
662
'You are calling ReactDOM.hydrate() on a container that was previously ' +
663
663
'passed to ReactDOM.%s(). This is not supported. ' +
664
- 'Did you mean to call root.render(element , {hydrate: true})?' ,
664
+ 'Did you mean to call createRoot(container , {hydrate: true}).render(element )?' ,
665
665
enableStableConcurrentModeAPIs ? 'createRoot' : 'unstable_createRoot' ,
666
666
) ;
667
667
}
You can’t perform that action at this time.
0 commit comments