[DevTools] Allow inspecting root when navigating Suspense timeline (#34380)
Sebastian "Sebbie" Silbermann committed
Sep 4, 2025 at 16:42 UTC
b9a045368bc1186fcaff6e8b027cfca28c857f04
1 file changed
+4
-5
packages/react-devtools-shared/src/devtools/views/SuspenseTab/SuspenseTimeline.js
+4
-5
@@ -45,10 +45,9 @@ function getSuspendableDocumentOrderSuspense(
45
if (current === undefined) {
46
continue;
47
}
48
- // Don't include the root. It's currently not supported to suspend the shell.
49
- if (current !== suspense) {
50
- suspenseTreeList.push(current);
51
- }
48
+ // Include the root even if we won't suspend it.
49
+ // You should be able to see what suspended the shell.
50
+ suspenseTreeList.push(current);
51
// Add children in reverse order to maintain document order
52
for (let j = current.children.length - 1; j >= 0; j--) {
53
const childSuspense = store.getSuspenseByID(current.children[j]);
@@ -139,7 +138,7 @@ function SuspenseTimelineInput({rootID}: {rootID: Element['id'] | void}) {
138
139
const pendingValue = +event.currentTarget.value;
140
const suspendedSet = timeline
142
- .slice(pendingValue + 1)
141
+ .slice(pendingValue)
142
.map(suspense => suspense.id);
143
144
bridge.send('overrideSuspenseMilestone', {