[DevTools] Add settings to hide Profiler and Suspense tabs#36219
[DevTools] Add settings to hide Profiler and Suspense tabs#36219ivnnv wants to merge 3 commits intofacebook:mainfrom
Conversation
Code reviewFound 1 issue:
react/packages/react-devtools-shared/src/devtools/views/DevTools.js Lines 298 to 314 in 1a6bfde 🤖 Generated with Claude Code - If this code review was useful, please react with 👍. Otherwise, react with 👎. |
|
Agreed, fixed. Shortcuts now index into |
eps1lon
left a comment
There was a problem hiding this comment.
This will just lead to developers accidentally hiding them or searching for them. Does dragging those tabs to the end not work for you?
|
Hey @eps1lon, thanks for checking this. About dragging tabs to the end: thats a workaround yeah, but it doesn't fully help in practice for some cases like mines. With a few extensions installed (Redux DevTools being the obvious one since most React developers use it), the tab bar overflows into the >> chevron pretty quickly. The "Components" label alone is quite long.
This gets even worse for developers who need to zoom in or increase the DevTools font size for accessibility reasons like myself: At higher zoom levels the tab bar real estate shrinks significantly, and every hidden panel that isn't being used makes a real difference. It's a small, opt-in feature that most people won't even notice exists. But for those who need it, whether for workflow preference or accessibility, it's a nice QoL improvement.
Let me know if there's a specific scenario you're worried about that I'm not covering here, happy to address it. |



Summary
Adds user-facing settings to optionally hide the Profiler and Suspense tabs in React DevTools. Many developers never use these panels, and hiding them reduces clutter in the browser DevTools tab bar.
chrome.devtools.panels.create. A hint explains that changes take effect when DevTools is opened in a new tab or reopened.showTabBar=true), the tabs are filtered immediately from the tab bar.Test plan