/opt/canhelp/node_modules/next/dist/esm/client/components/router-reducer
NameSizeModeActions
reducers/-0755rm
aliased-prefetch-navigations.js92550644editdlrm
aliased-prefetch-navigations.js.map147950644editdlrm
apply-flight-data.js19000644editdlrm
apply-flight-data.js.map34380644editdlrm
apply-router-state-patch-to-tree.js37770644editdlrm
apply-router-state-patch-to-tree.js.map65330644editdlrm
clear-cache-node-data-for-segment-path.js28880644editdlrm
clear-cache-node-data-for-segment-path.js.map47540644editdlrm
compute-changed-path.js46400644editdlrm
compute-changed-path.js.map83800644editdlrm
create-href-from-url.js2270644editdlrm
create-href-from-url.js.map5840644editdlrm
create-initial-router-state.js57310644editdlrm
create-initial-router-state.js.map92320644editdlrm
create-router-cache-key.js8400644editdlrm
create-router-cache-key.js.map14230644editdlrm
fetch-server-response.js138380644editdlrm
fetch-server-response.js.map235030644editdlrm
fill-cache-with-new-subtree-data.js44530644editdlrm
fill-cache-with-new-subtree-data.js.map83760644editdlrm
fill-lazy-items-till-leaf-with-head.js68570644editdlrm
fill-lazy-items-till-leaf-with-head.js.map98040644editdlrm
handle-mutable.js28870644editdlrm
handle-mutable.js.map53810644editdlrm
handle-segment-mismatch.js8670644editdlrm
handle-segment-mismatch.js.map18100644editdlrm
invalidate-cache-below-flight-segmentpath.js22550644editdlrm
invalidate-cache-below-flight-segmentpath.js.map39290644editdlrm
invalidate-cache-by-router-state.js9020644editdlrm
invalidate-cache-by-router-state.js.map18700644editdlrm
is-navigating-to-new-root-layout.js19130644editdlrm
is-navigating-to-new-root-layout.js.map31040644editdlrm
ppr-navigations.js456420644editdlrm
ppr-navigations.js.map711270644editdlrm
prefetch-cache-utils.js147320644editdlrm
prefetch-cache-utils.js.map227240644editdlrm
refetch-inactive-parallel-segments.js51630644editdlrm
refetch-inactive-parallel-segments.js.map79370644editdlrm
router-reducer-types.js13220644editdlrm
router-reducer-types.js.map97320644editdlrm
router-reducer.js21590644editdlrm
router-reducer.js.map34510644editdlrm
set-cache-busting-search-param.js32790644editdlrm
set-cache-busting-search-param.js.map48480644editdlrm
should-hard-navigate.js11330644editdlrm
should-hard-navigate.js.map21110644editdlrm
Edit: /opt/canhelp/node_modules/next/dist/esm/client/components/router-reducer/apply-flight-data.js.map (3438B)
{"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":["fillLazyItemsTillLeafWithHead","fillCacheWithNewSubTreeData","applyFlightData","navigatedAt","existingCache","cache","flightData","prefetchEntry","tree","treePatch","seedData","head","isRootRender","rsc","loading","prefetchRsc","parallelRoutes","Map"],"mappings":"AACA,SAASA,6BAA6B,QAAQ,wCAAuC;AACrF,SAASC,2BAA2B,QAAQ,qCAAoC;AAIhF,OAAO,SAASC,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;QACpBf,8BACEG,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,MAAMW,cAAc,GAAG,IAAIC,IAAIb,cAAcY,cAAc;QAC3DX,MAAMS,OAAO,GAAGV,cAAcU,OAAO;QACrC,4DAA4D;QAC5Db,4BACEE,aACAE,OACAD,eACAE,YACAC;IAEJ;IAEA,OAAO;AACT","ignoreList":[0]}