Remove Dead Code in WWW JS
Differential Revision: D77531947 Pull Request resolved: https://github.com/facebook/react/pull/33672
Facebook Community Bot committed
Jun 30, 2025 at 08:24 UTC
65c4decb565b4eb1423518e76dbda7bc40a01c04
1 file changed
-4
packages/react-server/src/ReactFizzServer.js
-4
@@ -4661,10 +4661,6 @@ 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
- if (task.thenableState !== null) {
4665
- // TODO: If we were stalled inside use() of a Client Component then we should
4666
- // rerender to get the stack trace from the use() call.
4667
- }
4664
}
4665
}
4666