### Website or app

https://github.com/eps1lon/react-devtools-repro-no-matching-node/

### Repro steps

1. `yarn start`
2. Open `App.js`
3. Uncomment the `useEffect` block
4. Click to inspect "Component" in DevTools
5. Error: "_Could not inspect element with id 5_"

Originally reported in https://github.com/facebook/react/issues/21436#issuecomment-835406075

---

https://user-images.githubusercontent.com/12292047/117544707-e6a6cd80-b022-11eb-9f8f-bb8cfd9f7743.mp4

### How often does this bug happen?

Every time

const Example = () => null;
    const container = document.createElement('div');
    await utils.actAsync(() =>
      ReactDOM.render(
        <Example
          set_of_sets={new Set([new Set([1, 2, 3]), new Set(['a', 'b', 'c'])])}
        />,
        container,
      ),
    );
    let inspectedElement = null;
    let inspectElementPath = null;
    // Render once to get a handle on inspectElementPath()
    inspectedElement = await inspectElementAtIndex(0, () => {
      inspectElementPath = useInspectElementPath();
    });
    async function loadPath(path) {
      TestUtilsAct(() => {
        TestRendererAct(() => {
          inspectElementPath(path);
          jest.runOnlyPendingTimers();
        });
      });
      inspectedElement = await inspectElementAtIndex(0);
    }
    expect(inspectedElement.props).toMatchInlineSnapshot(`
      Object {
        "set_of_sets": Object {
          "0": Dehydrated {
            "preview_short": Set(3),