Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d7feeb2

Browse files
authored
unstable_createRoot -> createRoot in test (facebook#17107)
Fixes test added in facebook#17105, which was based on an earler commit than the one that removed the `unstable_` prefix from `createRoot`.
1 parent 6ff23f2 commit d7feeb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-dom/src/__tests__/ReactDOMServerPartialHydration-test.internal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2526,7 +2526,7 @@ describe('ReactDOMServerPartialHydration', () => {
25262526
container.innerHTML = finalHTML;
25272527

25282528
suspend = true;
2529-
let root = ReactDOM.unstable_createRoot(container, {hydrate: true});
2529+
let root = ReactDOM.createRoot(container, {hydrate: true});
25302530
root.render(<App showSibling={false} />);
25312531
expect(Scheduler).toFlushAndYield([]);
25322532

0 commit comments

Comments
 (0)