File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
packages/react-devtools-shared/src/devtools/views/SuspenseTab Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -45,10 +45,9 @@ function getSuspendableDocumentOrderSuspense(
45
45
if ( current === undefined ) {
46
46
continue ;
47
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 ) ;
52
51
// Add children in reverse order to maintain document order
53
52
for ( let j = current . children . length - 1 ; j >= 0 ; j -- ) {
54
53
const childSuspense = store . getSuspenseByID ( current . children [ j ] ) ;
@@ -139,7 +138,7 @@ function SuspenseTimelineInput({rootID}: {rootID: Element['id'] | void}) {
139
138
140
139
const pendingValue = + event . currentTarget . value ;
141
140
const suspendedSet = timeline
142
- . slice ( pendingValue + 1 )
141
+ . slice ( pendingValue )
143
142
. map ( suspense => suspense . id ) ;
144
143
145
144
bridge . send ( 'overrideSuspenseMilestone' , {
You can’t perform that action at this time.
0 commit comments