Unverified Commit 23034d4e authored by Andrew Clark's avatar Andrew Clark Committed by GitHub

Pass `startTime` to initial RSC payload stream (#85144)

`startTime: 0` tells React to align the debug start time of the initial
RSC stream (i.e. the one used for hydration) to the start of the
document navigation. In other words, the timing information will now
include the network latency of the HTML document request.
parent fbbd5380
...@@ -175,7 +175,13 @@ if ( ...@@ -175,7 +175,13 @@ if (
const initialServerResponse = createFromReadableStream<InitialRSCPayload>( const initialServerResponse = createFromReadableStream<InitialRSCPayload>(
readable, readable,
{ callServer, findSourceMapURL, debugChannel } {
callServer,
findSourceMapURL,
debugChannel,
// @ts-expect-error This is not yet part of the React types
startTime: 0,
}
) )
function ServerRoot({ function ServerRoot({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment