react: [DevTools Bug]: Component tree panel becomes unresponsive after clicking on a few components

Website or app

Multiple; but you can check at https://react-bootstrap.github.io/

Repro steps

  1. Access a website in Chrome that uses React.
  2. Open Chrome Developer Tools
  3. Open the React Developer Tools Components tab/panel
  4. Click on 5 - 10 components in the component tree individually to inspect them

Notes:

  • This started happening on all React-based websites after updating to Chrome Version 102.0.5005.61 on my work MacBook (x86_64) and my personal MacBook (arm64). Reverting back to Chrome 100 seems to help.
  • I had a co-worker test as well, with the same result.
  • You can still select individual components using the picker, even after the panel locks up.
  • The lock-up seems to happen quicker when Expand component tree by default is selected in the Components tab in the panel settings, but will still lock up if you manually expand enough components.

How often does this bug happen?

Every time

DevTools package (automated)

react-devtools-extensions

DevTools version (automated)

4.24.6 (5/12/2022)

Error message (automated)

None

Error call stack (automated)

N/A

Error component stack (automated)

N/A

GitHub query string (automated)

N/A

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 9
  • Comments: 21 (14 by maintainers)

Commits related to this issue

Most upvoted comments

A temporary workaround before we land a fix:

  1. go to chrome://flags/
  2. search for Throttle non-visible cross-origin iframes
  3. change the flag to disable
  4. relaunch Chrome to make the change effective

I found that the unresponsiveness happens after scrolling, and that inspecting the flamegraph container itself and removing pointer-events: none from the <svg> makes it responsive again. I don’t have the bandwidth to do the fix, but from the source I see in the extension, this might get thrown on the container while scrolling, so something is maybe making it think we’re still scrolling? Hopefully someone can take this and run with it!

Editing to add that I also tried the version from March 30th via a CRX and it had the same issue in Chrome 102, so not a recent change. As @mondaychen points out, perhaps an interaction with new Chrome?

Version 4.24.7 with the temporary fix is on Chrome Web Store now. I’m closing this issue. Also for the record Chrome team has decided to revert that change caused this issue. requestAnimationFrame should work again on the stable version of Chrome v104+.

Yeah. That’s what I was thinking.

Facing the same problem. (Version 102.0.5005.61 (Official Build) (64-bit).

Same problem here.

Chrome version 102.0.5005.62 on Windows 10