We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e26fa0d commit 4e8a250Copy full SHA for 4e8a250
packages/react-server/src/ReactFlightServerConfigDebugNode.js
@@ -161,9 +161,9 @@ export function initAsyncDebugInfo(): void {
161
case UNRESOLVED_AWAIT_NODE:
162
case UNRESOLVED_PROMISE_NODE: {
163
// If we begin before we resolve, that means that this is actually already resolved but
164
- // the promiseResolve hook is called at the end of the execution. This means that it was
165
- // actually already resolved when we started so we just use the start time as the end time.
166
- resolvePromiseOrAwaitNode(node, node.start);
+ // the promiseResolve hook is called at the end of the execution. So we track the time
+ // in the beginning instead.
+ resolvePromiseOrAwaitNode(node, performance.now());
167
break;
168
}
169
0 commit comments