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>",
4261
+
isAnArray,
4262
+
index,
4263
+
isAnArray
4264
+
),
4265
+
!1)
4266
+
: !0;
4267
+
}
4254
4268
function finishQueueingConcurrentUpdates() {
4255
4269
for (
4256
4270
var endIndex = concurrentQueuesIndex,
@@ -8323,20 +8337,6 @@ __DEV__ &&
8323
8337
propagationRoot
8324
8338
);
8325
8339
}
8326
-
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>",
8333
-
isAnArray,
8334
-
index,
8335
-
isAnArray
8336
-
),
8337
-
!1)
8338
-
: !0;
8339
-
}
8340
8340
function initSuspenseListRenderState(
8341
8341
workInProgress,
8342
8342
isBackwards,
@@ -8366,6 +8366,15 @@ __DEV__ &&
8366
8366
revealOrder = nextProps.revealOrder,
8367
8367
tailMode = nextProps.tail;
8368
8368
nextProps = nextProps.children;
8369
+
var suspenseContext = suspenseStackCursor.current,
0 commit comments