mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 12:20:20 +01:00
Back out "Remove Dead Code in WWW JS" (#33673)
Original commit changeset: 65c4decb56
This was removed by dead code removal. Adding back the TODO with
commented out code.
This commit is contained in:
parent
65c4decb56
commit
6a3d16ca74
6
packages/react-server/src/ReactFizzServer.js
vendored
6
packages/react-server/src/ReactFizzServer.js
vendored
|
|
@ -4661,6 +4661,12 @@ function abortTask(task: Task, request: Request, error: mixed): void {
|
||||||
if (node !== null && typeof node === 'object') {
|
if (node !== null && typeof node === 'object') {
|
||||||
// Push a fake component stack frame that represents the await.
|
// Push a fake component stack frame that represents the await.
|
||||||
pushHaltedAwaitOnComponentStack(task, node._debugInfo);
|
pushHaltedAwaitOnComponentStack(task, node._debugInfo);
|
||||||
|
/*
|
||||||
|
if (task.thenableState !== null) {
|
||||||
|
// TODO: If we were stalled inside use() of a Client Component then we should
|
||||||
|
// rerender to get the stack trace from the use() call.
|
||||||
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user