@samitouri / QOS-React-2 / commits / 6a3d16ca74

Back out "Remove Dead Code in WWW JS" (#33673)

Original commit changeset: 65c4decb565b This was removed by dead code removal. Adding back the TODO with commented out code.

Jan Kassens committed Jun 30, 2025 at 15:26 UTC 6a3d16ca74acd28632dabccc142d42ce411a811b
1 file changed +6
packages/react-server/src/ReactFizzServer.js
+6
@@ -4661,6 +4661,12 @@ function abortTask(task: Task, request: Request, error: mixed): void {
4661 if (node !== null && typeof node === 'object') {
4662 // Push a fake component stack frame that represents the await.
4663 pushHaltedAwaitOnComponentStack(task, node._debugInfo);
4664 + /*
4665 + if (task.thenableState !== null) {
4666 + // TODO: If we were stalled inside use() of a Client Component then we should
4667 + // rerender to get the stack trace from the use() call.
4668 + }
4669 + */
4670 }
4671 }
4672