mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
unstable_createRoot -> createRoot in test (#17107)
Fixes test added in #17105, which was based on an earler commit than the one that removed the `unstable_` prefix from `createRoot`.
This commit is contained in:
@@ -2526,7 +2526,7 @@ describe('ReactDOMServerPartialHydration', () => {
|
||||
container.innerHTML = finalHTML;
|
||||
|
||||
suspend = true;
|
||||
let root = ReactDOM.unstable_createRoot(container, {hydrate: true});
|
||||
let root = ReactDOM.createRoot(container, {hydrate: true});
|
||||
root.render(<App showSibling={false} />);
|
||||
expect(Scheduler).toFlushAndYield([]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user