From 1fd291d3c5e21953d92228b0f35d4f932170317f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Markb=C3=A5ge?= Date: Fri, 26 Sep 2025 09:43:00 -0400 Subject: [PATCH 1/5] [DevTools] Disable the tree list for now (#34606) When there are no named Activities we should hide the tree side panel (and the button to show it). Since it's not implemented yet there are never any ones so it's always hidden. --- .../devtools/views/SuspenseTab/SuspenseTab.js | 41 ++++++++++++------- 1 file changed, 27 insertions(+), 14 deletions(-) diff --git a/packages/react-devtools-shared/src/devtools/views/SuspenseTab/SuspenseTab.js b/packages/react-devtools-shared/src/devtools/views/SuspenseTab/SuspenseTab.js index 64ad391dd94d1..8c93cf968a2ac 100644 --- a/packages/react-devtools-shared/src/devtools/views/SuspenseTab/SuspenseTab.js +++ b/packages/react-devtools-shared/src/devtools/views/SuspenseTab/SuspenseTab.js @@ -117,6 +117,11 @@ function SuspenseTab(_: {}) { initLayoutState, ); + // If there are no named Activity boundaries, we don't have any tree list and we should hide + // both the panel and the button to toggle it. Since we currently don't support it yet, it's + // always disabled. + const treeListDisabled = true; + const wrapperTreeRef = useRef(null); const resizeTreeRef = useRef(null); const resizeTreeListRef = useRef(null); @@ -290,23 +295,31 @@ function SuspenseTab(_: {}) { return (
- - + )} + {treeListDisabled ? null : ( +