@@ -5444,24 +5444,25 @@ function forwardDebugInfoFromAbortedTask(request: Request, task: Task): void {
54445444 // See if any of the dependencies are resolved yet.
54455445 node = node . awaited ;
54465446 }
5447- // For unresolved Promises, check if we have an internal await node that shows what
5448- // the async function is currently blocked on. For resolved Promises, the regular
5449- // awaited field already contains the necessary information.
5447+ // For unresolved promise nodes, check if we have an internal await node
5448+ // that shows what the async function is blocked on.
54505449 if ( node . tag === UNRESOLVED_PROMISE_NODE ) {
54515450 const internalAwait = getInternalAwaitNode ( node ) ;
54525451 if ( internalAwait !== null ) {
54535452 node = internalAwait ;
54545453 }
54555454 }
54565455 if ( node . tag === UNRESOLVED_AWAIT_NODE ) {
5457- // We found the await that's blocking. Use its stack to show where the component is stuck.
54585456 serializeIONode ( request , node , null ) ;
54595457 request . pendingChunks ++ ;
54605458 const env = ( 0 , request . environmentName ) ( ) ;
54615459 const asyncInfo : ReactAsyncInfo = {
5462- awaited : ( ( node : any ) : ReactIOInfo ) ,
5460+ awaited : ( ( node : any ) : ReactIOInfo ) , // This is deduped by this reference.
54635461 env : env ,
54645462 } ;
5463+ // We don't have a start time for this await but in case there was no start time emitted
5464+ // we need to include something. TODO: We should maybe ideally track the time when we
5465+ // called .then() but without updating the task.time field since that's used for the cutoff.
54655466 advanceTaskTime ( request , task , task . time ) ;
54665467 emitDebugChunk ( request , task . id , asyncInfo ) ;
54675468 } else {
0 commit comments