Skip to content

Commit 061ac27

Browse files
authored
Fix use of hydrateRoot in DevTools test (#24084)
I noticed while working on a different PR that this test was not using hydrateRoot correctly. You're meant to pass the initial children as the second argument.
1 parent 7967240 commit 061ac27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/react-devtools-shared/src/__tests__/inspectedElement-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2099,7 +2099,7 @@ describe('InspectedElement', () => {
20992099
await utils.actAsync(() => {
21002100
const container = document.createElement('div');
21012101
container.innerHTML = '<div></div>';
2102-
ReactDOMClient.hydrateRoot(container).render(<Example />);
2102+
ReactDOMClient.hydrateRoot(container, <Example />);
21032103
}, false);
21042104

21052105
const inspectedElement = await inspectElementAtIndex(0);

0 commit comments

Comments
 (0)