Skip to content

Commit

Permalink
Fix use of hydrateRoot in DevTools test (#24084)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
acdlite committed Mar 13, 2022
1 parent 7967240 commit 061ac27
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2099,7 +2099,7 @@ describe('InspectedElement', () => {
await utils.actAsync(() => {
const container = document.createElement('div');
container.innerHTML = '<div></div>';
ReactDOMClient.hydrateRoot(container).render(<Example />);
ReactDOMClient.hydrateRoot(container, <Example />);
}, false);

const inspectedElement = await inspectElementAtIndex(0);
Expand Down

0 comments on commit 061ac27

Please sign in to comment.