/opt/canhelp/node_modules/next/dist/client/components/router-reducer
NameSizeModeActions
reducers/-0755rm
aliased-prefetch-navigations.d.ts15820644editdlrm
aliased-prefetch-navigations.js93070644editdlrm
aliased-prefetch-navigations.js.map147060644editdlrm
apply-flight-data.d.ts4100644editdlrm
apply-flight-data.js25100644editdlrm
apply-flight-data.js.map34340644editdlrm
apply-router-state-patch-to-tree.d.ts5540644editdlrm
apply-router-state-patch-to-tree.js42150644editdlrm
apply-router-state-patch-to-tree.js.map65150644editdlrm
clear-cache-node-data-for-segment-path.d.ts4560644editdlrm
clear-cache-node-data-for-segment-path.js33620644editdlrm
clear-cache-node-data-for-segment-path.js.map47340644editdlrm
compute-changed-path.d.ts5390644editdlrm
compute-changed-path.js55720644editdlrm
compute-changed-path.js.map84050644editdlrm
create-href-from-url.d.ts1220644editdlrm
create-href-from-url.js7670644editdlrm
create-href-from-url.js.map6010644editdlrm
create-initial-router-state.d.ts13230644editdlrm
create-initial-router-state.js64720644editdlrm
create-initial-router-state.js.map91520644editdlrm
create-router-cache-key.d.ts1720644editdlrm
create-router-cache-key.js13970644editdlrm
create-router-cache-key.js.map14300644editdlrm
fetch-server-response.d.ts19470644editdlrm
fetch-server-response.js147420644editdlrm
fetch-server-response.js.map233660644editdlrm
fill-cache-with-new-subtree-data.d.ts6880644editdlrm
fill-cache-with-new-subtree-data.js54120644editdlrm
fill-cache-with-new-subtree-data.js.map83590644editdlrm
fill-lazy-items-till-leaf-with-head.d.ts5360644editdlrm
fill-lazy-items-till-leaf-with-head.js74660644editdlrm
fill-lazy-items-till-leaf-with-head.js.map97940644editdlrm
handle-mutable.d.ts1910644editdlrm
handle-mutable.js34460644editdlrm
handle-mutable.js.map53900644editdlrm
handle-segment-mismatch.d.ts5360644editdlrm
handle-segment-mismatch.js12370644editdlrm
handle-segment-mismatch.js.map18030644editdlrm
invalidate-cache-below-flight-segmentpath.d.ts4110644editdlrm
invalidate-cache-below-flight-segmentpath.js27890644editdlrm
invalidate-cache-below-flight-segmentpath.js.map39090644editdlrm
invalidate-cache-by-router-state.d.ts3680644editdlrm
invalidate-cache-by-router-state.js14270644editdlrm
invalidate-cache-by-router-state.js.map18640644editdlrm
is-navigating-to-new-root-layout.d.ts1980644editdlrm
is-navigating-to-new-root-layout.js24730644editdlrm
is-navigating-to-new-root-layout.js.map31210644editdlrm
ppr-navigations.d.ts13790644editdlrm
ppr-navigations.js446890644editdlrm
ppr-navigations.js.map706960644editdlrm
prefetch-cache-utils.d.ts18950644editdlrm
prefetch-cache-utils.js159580644editdlrm
prefetch-cache-utils.js.map228050644editdlrm
refetch-inactive-parallel-segments.d.ts18860644editdlrm
refetch-inactive-parallel-segments.js49270644editdlrm
refetch-inactive-parallel-segments.js.map79110644editdlrm
router-reducer-types.d.ts91400644editdlrm
router-reducer-types.js24140644editdlrm
router-reducer-types.js.map98280644editdlrm
router-reducer.d.ts2610644editdlrm
router-reducer.js27870644editdlrm
router-reducer.js.map33100644editdlrm
set-cache-busting-search-param.d.ts15430644editdlrm
set-cache-busting-search-param.js29100644editdlrm
set-cache-busting-search-param.js.map47910644editdlrm
should-hard-navigate.d.ts2170644editdlrm
should-hard-navigate.js16230644editdlrm
should-hard-navigate.js.map20920644editdlrm
Edit: /opt/canhelp/node_modules/next/dist/client/components/router-reducer/apply-flight-data.js.map (3434B)
{"version":3,"sources":["../../../../src/client/components/router-reducer/apply-flight-data.ts"],"sourcesContent":["import type { CacheNode } from '../../../shared/lib/app-router-context.shared-runtime'\nimport { fillLazyItemsTillLeafWithHead } from './fill-lazy-items-till-leaf-with-head'\nimport { fillCacheWithNewSubTreeData } from './fill-cache-with-new-subtree-data'\nimport type { PrefetchCacheEntry } from './router-reducer-types'\nimport type { NormalizedFlightData } from '../../flight-data-helpers'\n\nexport function applyFlightData(\n navigatedAt: number,\n existingCache: CacheNode,\n cache: CacheNode,\n flightData: NormalizedFlightData,\n prefetchEntry?: PrefetchCacheEntry\n): boolean {\n // The one before last item is the router state tree patch\n const { tree: treePatch, seedData, head, isRootRender } = flightData\n\n // Handles case where prefetch only returns the router tree patch without rendered components.\n if (seedData === null) {\n return false\n }\n\n if (isRootRender) {\n const rsc = seedData[1]\n const loading = seedData[3]\n cache.loading = loading\n cache.rsc = rsc\n // This is a PPR-only field. When PPR is enabled, we shouldn't hit\n // this path during a navigation, but until PPR is fully implemented\n // yet it's possible the existing node does have a non-null\n // `prefetchRsc`. As an incremental step, we'll just de-opt to the\n // old behavior — no PPR value.\n cache.prefetchRsc = null\n fillLazyItemsTillLeafWithHead(\n navigatedAt,\n cache,\n existingCache,\n treePatch,\n seedData,\n head,\n prefetchEntry\n )\n } else {\n // Copy rsc for the root node of the cache.\n cache.rsc = existingCache.rsc\n // This is a PPR-only field. Unlike the previous branch, since we're\n // just cloning the existing cache node, we might as well keep the\n // PPR value, if it exists.\n cache.prefetchRsc = existingCache.prefetchRsc\n cache.parallelRoutes = new Map(existingCache.parallelRoutes)\n cache.loading = existingCache.loading\n // Create a copy of the existing cache with the rsc applied.\n fillCacheWithNewSubTreeData(\n navigatedAt,\n cache,\n existingCache,\n flightData,\n prefetchEntry\n )\n }\n\n return true\n}\n"],"names":["applyFlightData","navigatedAt","existingCache","cache","flightData","prefetchEntry","tree","treePatch","seedData","head","isRootRender","rsc","loading","prefetchRsc","fillLazyItemsTillLeafWithHead","parallelRoutes","Map","fillCacheWithNewSubTreeData"],"mappings":";;;;+BAMgBA;;;eAAAA;;;+CAL8B;6CACF;AAIrC,SAASA,gBACdC,WAAmB,EACnBC,aAAwB,EACxBC,KAAgB,EAChBC,UAAgC,EAChCC,aAAkC;IAElC,0DAA0D;IAC1D,MAAM,EAAEC,MAAMC,SAAS,EAAEC,QAAQ,EAAEC,IAAI,EAAEC,YAAY,EAAE,GAAGN;IAE1D,8FAA8F;IAC9F,IAAII,aAAa,MAAM;QACrB,OAAO;IACT;IAEA,IAAIE,cAAc;QAChB,MAAMC,MAAMH,QAAQ,CAAC,EAAE;QACvB,MAAMI,UAAUJ,QAAQ,CAAC,EAAE;QAC3BL,MAAMS,OAAO,GAAGA;QAChBT,MAAMQ,GAAG,GAAGA;QACZ,kEAAkE;QAClE,oEAAoE;QACpE,2DAA2D;QAC3D,kEAAkE;QAClE,+BAA+B;QAC/BR,MAAMU,WAAW,GAAG;QACpBC,IAAAA,4DAA6B,EAC3Bb,aACAE,OACAD,eACAK,WACAC,UACAC,MACAJ;IAEJ,OAAO;QACL,2CAA2C;QAC3CF,MAAMQ,GAAG,GAAGT,cAAcS,GAAG;QAC7B,oEAAoE;QACpE,kEAAkE;QAClE,2BAA2B;QAC3BR,MAAMU,WAAW,GAAGX,cAAcW,WAAW;QAC7CV,MAAMY,cAAc,GAAG,IAAIC,IAAId,cAAca,cAAc;QAC3DZ,MAAMS,OAAO,GAAGV,cAAcU,OAAO;QACrC,4DAA4D;QAC5DK,IAAAA,wDAA2B,EACzBhB,aACAE,OACAD,eACAE,YACAC;IAEJ;IAEA,OAAO;AACT","ignoreList":[0]}