/
opt
/
canhelp
/
node_modules
/
next
/
dist
/
esm
/
client
/
components
/
router-reducer
/
/opt/canhelp/node_modules/next/dist/esm/client/components/router-reducer
mkdir
upload
Name
Size
Mode
Actions
reducers/
-
0755
rm
aliased-prefetch-navigations.js
9255
0644
edit
dl
rm
aliased-prefetch-navigations.js.map
14795
0644
edit
dl
rm
apply-flight-data.js
1900
0644
edit
dl
rm
apply-flight-data.js.map
3438
0644
edit
dl
rm
apply-router-state-patch-to-tree.js
3777
0644
edit
dl
rm
apply-router-state-patch-to-tree.js.map
6533
0644
edit
dl
rm
clear-cache-node-data-for-segment-path.js
2888
0644
edit
dl
rm
clear-cache-node-data-for-segment-path.js.map
4754
0644
edit
dl
rm
compute-changed-path.js
4640
0644
edit
dl
rm
compute-changed-path.js.map
8380
0644
edit
dl
rm
create-href-from-url.js
227
0644
edit
dl
rm
create-href-from-url.js.map
584
0644
edit
dl
rm
create-initial-router-state.js
5731
0644
edit
dl
rm
create-initial-router-state.js.map
9232
0644
edit
dl
rm
create-router-cache-key.js
840
0644
edit
dl
rm
create-router-cache-key.js.map
1423
0644
edit
dl
rm
fetch-server-response.js
13838
0644
edit
dl
rm
fetch-server-response.js.map
23503
0644
edit
dl
rm
fill-cache-with-new-subtree-data.js
4453
0644
edit
dl
rm
fill-cache-with-new-subtree-data.js.map
8376
0644
edit
dl
rm
fill-lazy-items-till-leaf-with-head.js
6857
0644
edit
dl
rm
fill-lazy-items-till-leaf-with-head.js.map
9804
0644
edit
dl
rm
handle-mutable.js
2887
0644
edit
dl
rm
handle-mutable.js.map
5381
0644
edit
dl
rm
handle-segment-mismatch.js
867
0644
edit
dl
rm
handle-segment-mismatch.js.map
1810
0644
edit
dl
rm
invalidate-cache-below-flight-segmentpath.js
2255
0644
edit
dl
rm
invalidate-cache-below-flight-segmentpath.js.map
3929
0644
edit
dl
rm
invalidate-cache-by-router-state.js
902
0644
edit
dl
rm
invalidate-cache-by-router-state.js.map
1870
0644
edit
dl
rm
is-navigating-to-new-root-layout.js
1913
0644
edit
dl
rm
is-navigating-to-new-root-layout.js.map
3104
0644
edit
dl
rm
ppr-navigations.js
45642
0644
edit
dl
rm
ppr-navigations.js.map
71127
0644
edit
dl
rm
prefetch-cache-utils.js
14732
0644
edit
dl
rm
prefetch-cache-utils.js.map
22724
0644
edit
dl
rm
refetch-inactive-parallel-segments.js
5163
0644
edit
dl
rm
refetch-inactive-parallel-segments.js.map
7937
0644
edit
dl
rm
router-reducer-types.js
1322
0644
edit
dl
rm
router-reducer-types.js.map
9732
0644
edit
dl
rm
router-reducer.js
2159
0644
edit
dl
rm
router-reducer.js.map
3451
0644
edit
dl
rm
set-cache-busting-search-param.js
3279
0644
edit
dl
rm
set-cache-busting-search-param.js.map
4848
0644
edit
dl
rm
should-hard-navigate.js
1133
0644
edit
dl
rm
should-hard-navigate.js.map
2111
0644
edit
dl
rm
Edit:
/opt/canhelp/node_modules/next/dist/esm/client/components/router-reducer/apply-flight-data.js
(1900B)
import { fillLazyItemsTillLeafWithHead } from './fill-lazy-items-till-leaf-with-head'; import { fillCacheWithNewSubTreeData } from './fill-cache-with-new-subtree-data'; export function applyFlightData(navigatedAt, existingCache, cache, flightData, prefetchEntry) { // The one before last item is the router state tree patch const { tree: treePatch, seedData, head, isRootRender } = flightData; // Handles case where prefetch only returns the router tree patch without rendered components. if (seedData === null) { return false; } if (isRootRender) { const rsc = seedData[1]; const loading = seedData[3]; cache.loading = loading; cache.rsc = rsc; // This is a PPR-only field. When PPR is enabled, we shouldn't hit // this path during a navigation, but until PPR is fully implemented // yet it's possible the existing node does have a non-null // `prefetchRsc`. As an incremental step, we'll just de-opt to the // old behavior — no PPR value. cache.prefetchRsc = null; fillLazyItemsTillLeafWithHead(navigatedAt, cache, existingCache, treePatch, seedData, head, prefetchEntry); } else { // Copy rsc for the root node of the cache. cache.rsc = existingCache.rsc; // This is a PPR-only field. Unlike the previous branch, since we're // just cloning the existing cache node, we might as well keep the // PPR value, if it exists. cache.prefetchRsc = existingCache.prefetchRsc; cache.parallelRoutes = new Map(existingCache.parallelRoutes); cache.loading = existingCache.loading; // Create a copy of the existing cache with the rsc applied. fillCacheWithNewSubTreeData(navigatedAt, cache, existingCache, flightData, prefetchEntry); } return true; } //# sourceMappingURL=apply-flight-data.js.map
Save
cmd:
run