You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Fiber] Support AsyncIterable children in SuspenseList (#33299)
We support AsyncIterable (more so when it's a cached form like in coming
from Flight) as children.
This fixes some warnings and bugs when passed to SuspenseList.
Ideally SuspenseList with `tail="hidden"` should support unblocking
before the full result has resolved but that's an optimization on top.
We also might want to change semantics for this for
`revealOrder="backwards"` so it becomes possible to stream items in
reverse order.
DiffTrain build for [4c6967b](4c6967b)
"A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",
6416
+
isAnArray,
6417
+
index,
6418
+
isAnArray
6419
+
),
6420
+
!1)
6421
+
: !0;
6422
+
}
6409
6423
function initializeUpdateQueue(fiber) {
6410
6424
fiber.updateQueue = {
6411
6425
baseState: fiber.memoizedState,
@@ -10507,20 +10521,6 @@ __DEV__ &&
10507
10521
propagationRoot
10508
10522
);
10509
10523
}
10510
-
function validateSuspenseListNestedChild(childSlot, index) {
"A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",
10517
-
isAnArray,
10518
-
index,
10519
-
isAnArray
10520
-
),
10521
-
!1)
10522
-
: !0;
10523
-
}
10524
10524
function initSuspenseListRenderState(
10525
10525
workInProgress,
10526
10526
isBackwards,
@@ -10550,6 +10550,15 @@ __DEV__ &&
10550
10550
revealOrder = nextProps.revealOrder,
10551
10551
tailMode = nextProps.tail;
10552
10552
nextProps = nextProps.children;
10553
+
var suspenseContext = suspenseStackCursor.current,
0 commit comments