Unverified Commit d9bcc4a6 authored by Jude Gao's avatar Jude Gao Committed by GitHub

[Segment Cache] Fix isHeadPartial logic (#81566)

This PR fixed two typos that affected isHeadPartial logic.
parent fcfae6eb
...@@ -1466,7 +1466,7 @@ function writeDynamicTreeResponseIntoCache( ...@@ -1466,7 +1466,7 @@ function writeDynamicTreeResponseIntoCache(
entry, entry,
convertRootFlightRouterStateToRouteTree(flightRouterState), convertRootFlightRouterStateToRouteTree(flightRouterState),
flightData.head, flightData.head,
isResponsePartial, flightData.isHeadPartial,
now + staleTimeMs, now + staleTimeMs,
couldBeIntercepted, couldBeIntercepted,
canonicalUrl, canonicalUrl,
......
...@@ -171,7 +171,7 @@ export async function walkTreeWithFlightRouterState({ ...@@ -171,7 +171,7 @@ export async function walkTreeWithFlightRouterState({
routerState, routerState,
null, null,
[null, null], [null, null],
false, true,
] satisfies FlightDataSegment, ] satisfies FlightDataSegment,
] ]
} }
......
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