You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Segment Cache] Add refresh URL to reused default segments (#84627)
When segment is reused in the "default" parallel route slot, it is not
part of the new page. So if the page is refreshed, we must fetch its
data from the previous URL, not the new URL. To track this we add the
previous URL to a special field in the FlightRouterState.
Currently this field is added by
addRefreshMarkerToActiveParallelSegments; this updates the
"ppr-navigations" module to add it during the main traversal used by
navigations, so we can eventually get rid
addRefreshMarkerToActiveParallelSegments.
Note that we don't need to add the marker to _all_ page segments, just
the ones that are not part of the new page.
"parallel-routes-revalidation router.refresh (dynamic) - searchParams: false should correctly refresh data for previously intercepted modal and active page slot",
22
-
"parallel-routes-revalidation router.refresh (dynamic) - searchParams: true should correctly refresh data for previously intercepted modal and active page slot",
23
-
"parallel-routes-revalidation router.refresh (dynamic) - searchParams: true should correctly refresh data for the intercepted route and previously active page slot",
24
-
"parallel-routes-revalidation router.refresh (regular) - searchParams: false should correctly refresh data for previously intercepted modal and active page slot",
25
-
"parallel-routes-revalidation router.refresh (regular) - searchParams: true should correctly refresh data for previously intercepted modal and active page slot",
26
-
"parallel-routes-revalidation router.refresh (regular) - searchParams: true should correctly refresh data for the intercepted route and previously active page slot",
27
-
"parallel-routes-revalidation server action revalidation handles refreshing when multiple parallel slots are active",
28
21
"parallel-routes-revalidation server action revalidation should not trigger a refresh for the page that is being redirected to"
0 commit comments