Skip to content

Commit a7c0c06

Browse files
committed
Suspend everything *after* the current selection
The first selection will be the root. We can't show anything suspended for that. The next one should be one step after that. This lets you see the final state by going to the end of the timeline.
1 parent f6e1fdb commit a7c0c06

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/react-devtools-shared/src/devtools/views/SuspenseTab/SuspenseTimeline.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,11 @@ function SuspenseTimelineInput() {
184184
);
185185
return;
186186
}
187-
const suspendedSet = timeline.slice(timelineIndex);
187+
// We suspend everything after the current selection. The root isn't showing
188+
// anything suspended in the root. The step after that should have one less
189+
// thing suspended. I.e. the first suspense boundary should be unsuspended
190+
// when it's selected. This also lets you show everything in the last step.
191+
const suspendedSet = timeline.slice(timelineIndex + 1);
188192
bridge.send('overrideSuspenseMilestone', {
189193
rendererID,
190194
rootID,

0 commit comments

Comments
 (0)