mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 12:20:20 +01:00
[Fizz] Set keyPath for SuspenseList (#33320)
I missed setting the `keyPath` because the `renderChildrenArray` that this is forked from doesn't need to set a path but since this is rendered from the `SuspenseList` element it needs it.
This commit is contained in:
parent
9c7b10e22e
commit
2388481283
7
packages/react-server/src/ReactFizzServer.js
vendored
7
packages/react-server/src/ReactFizzServer.js
vendored
|
|
@ -1783,6 +1783,8 @@ function renderSuspenseListRows(
|
|||
): void {
|
||||
// This is a fork of renderChildrenArray that's aware of tracking rows.
|
||||
const prevKeyPath = task.keyPath;
|
||||
const prevTreeContext = task.treeContext;
|
||||
const prevRow = task.row;
|
||||
const previousComponentStack = task.componentStack;
|
||||
let previousDebugTask = null;
|
||||
if (__DEV__) {
|
||||
|
|
@ -1792,10 +1794,9 @@ function renderSuspenseListRows(
|
|||
pushServerComponentStack(task, (task.node: any).props.children._debugInfo);
|
||||
}
|
||||
|
||||
const prevTreeContext = task.treeContext;
|
||||
const prevRow = task.row;
|
||||
const totalChildren = rows.length;
|
||||
task.keyPath = keyPath;
|
||||
|
||||
const totalChildren = rows.length;
|
||||
let previousSuspenseListRow: null | SuspenseListRow = null;
|
||||
if (task.replay !== null) {
|
||||
// Replay
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user