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 : ( +