Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,9 @@ function getSuspendableDocumentOrderSuspense(
if (current === undefined) {
continue;
}
// Don't include the root. It's currently not supported to suspend the shell.
if (current !== suspense) {
suspenseTreeList.push(current);
}
// Include the root even if we won't suspend it.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does "even if we won't suspend it" mean here?

Seems important to start dealing with the hasUniqueSuspenders case ASAP because for all these cases I'm wondering what your intention is.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Meaning that the backend doesn't support suspending the root because there isn't anything meaningful to display other than showing a blank.

// You should be able to see what suspended the shell.
suspenseTreeList.push(current);
// Add children in reverse order to maintain document order
for (let j = current.children.length - 1; j >= 0; j--) {
const childSuspense = store.getSuspenseByID(current.children[j]);
Expand Down Expand Up @@ -139,7 +138,7 @@ function SuspenseTimelineInput({rootID}: {rootID: Element['id'] | void}) {

const pendingValue = +event.currentTarget.value;
const suspendedSet = timeline
.slice(pendingValue + 1)
.slice(pendingValue)
.map(suspense => suspense.id);

bridge.send('overrideSuspenseMilestone', {
Expand Down
Loading