/
opt
/
canhelp
/
node_modules
/
next
/
dist
/
client
/
components
/
router-reducer
/
/opt/canhelp/node_modules/next/dist/client/components/router-reducer
mkdir
upload
Name
Size
Mode
Actions
reducers/
-
0755
rm
aliased-prefetch-navigations.d.ts
1582
0644
edit
dl
rm
aliased-prefetch-navigations.js
9307
0644
edit
dl
rm
aliased-prefetch-navigations.js.map
14706
0644
edit
dl
rm
apply-flight-data.d.ts
410
0644
edit
dl
rm
apply-flight-data.js
2510
0644
edit
dl
rm
apply-flight-data.js.map
3434
0644
edit
dl
rm
apply-router-state-patch-to-tree.d.ts
554
0644
edit
dl
rm
apply-router-state-patch-to-tree.js
4215
0644
edit
dl
rm
apply-router-state-patch-to-tree.js.map
6515
0644
edit
dl
rm
clear-cache-node-data-for-segment-path.d.ts
456
0644
edit
dl
rm
clear-cache-node-data-for-segment-path.js
3362
0644
edit
dl
rm
clear-cache-node-data-for-segment-path.js.map
4734
0644
edit
dl
rm
compute-changed-path.d.ts
539
0644
edit
dl
rm
compute-changed-path.js
5572
0644
edit
dl
rm
compute-changed-path.js.map
8405
0644
edit
dl
rm
create-href-from-url.d.ts
122
0644
edit
dl
rm
create-href-from-url.js
767
0644
edit
dl
rm
create-href-from-url.js.map
601
0644
edit
dl
rm
create-initial-router-state.d.ts
1323
0644
edit
dl
rm
create-initial-router-state.js
6472
0644
edit
dl
rm
create-initial-router-state.js.map
9152
0644
edit
dl
rm
create-router-cache-key.d.ts
172
0644
edit
dl
rm
create-router-cache-key.js
1397
0644
edit
dl
rm
create-router-cache-key.js.map
1430
0644
edit
dl
rm
fetch-server-response.d.ts
1947
0644
edit
dl
rm
fetch-server-response.js
14742
0644
edit
dl
rm
fetch-server-response.js.map
23366
0644
edit
dl
rm
fill-cache-with-new-subtree-data.d.ts
688
0644
edit
dl
rm
fill-cache-with-new-subtree-data.js
5412
0644
edit
dl
rm
fill-cache-with-new-subtree-data.js.map
8359
0644
edit
dl
rm
fill-lazy-items-till-leaf-with-head.d.ts
536
0644
edit
dl
rm
fill-lazy-items-till-leaf-with-head.js
7466
0644
edit
dl
rm
fill-lazy-items-till-leaf-with-head.js.map
9794
0644
edit
dl
rm
handle-mutable.d.ts
191
0644
edit
dl
rm
handle-mutable.js
3446
0644
edit
dl
rm
handle-mutable.js.map
5390
0644
edit
dl
rm
handle-segment-mismatch.d.ts
536
0644
edit
dl
rm
handle-segment-mismatch.js
1237
0644
edit
dl
rm
handle-segment-mismatch.js.map
1803
0644
edit
dl
rm
invalidate-cache-below-flight-segmentpath.d.ts
411
0644
edit
dl
rm
invalidate-cache-below-flight-segmentpath.js
2789
0644
edit
dl
rm
invalidate-cache-below-flight-segmentpath.js.map
3909
0644
edit
dl
rm
invalidate-cache-by-router-state.d.ts
368
0644
edit
dl
rm
invalidate-cache-by-router-state.js
1427
0644
edit
dl
rm
invalidate-cache-by-router-state.js.map
1864
0644
edit
dl
rm
is-navigating-to-new-root-layout.d.ts
198
0644
edit
dl
rm
is-navigating-to-new-root-layout.js
2473
0644
edit
dl
rm
is-navigating-to-new-root-layout.js.map
3121
0644
edit
dl
rm
ppr-navigations.d.ts
1379
0644
edit
dl
rm
ppr-navigations.js
44689
0644
edit
dl
rm
ppr-navigations.js.map
70696
0644
edit
dl
rm
prefetch-cache-utils.d.ts
1895
0644
edit
dl
rm
prefetch-cache-utils.js
15958
0644
edit
dl
rm
prefetch-cache-utils.js.map
22805
0644
edit
dl
rm
refetch-inactive-parallel-segments.d.ts
1886
0644
edit
dl
rm
refetch-inactive-parallel-segments.js
4927
0644
edit
dl
rm
refetch-inactive-parallel-segments.js.map
7911
0644
edit
dl
rm
router-reducer-types.d.ts
9140
0644
edit
dl
rm
router-reducer-types.js
2414
0644
edit
dl
rm
router-reducer-types.js.map
9828
0644
edit
dl
rm
router-reducer.d.ts
261
0644
edit
dl
rm
router-reducer.js
2787
0644
edit
dl
rm
router-reducer.js.map
3310
0644
edit
dl
rm
set-cache-busting-search-param.d.ts
1543
0644
edit
dl
rm
set-cache-busting-search-param.js
2910
0644
edit
dl
rm
set-cache-busting-search-param.js.map
4791
0644
edit
dl
rm
should-hard-navigate.d.ts
217
0644
edit
dl
rm
should-hard-navigate.js
1623
0644
edit
dl
rm
should-hard-navigate.js.map
2092
0644
edit
dl
rm
Edit:
/opt/canhelp/node_modules/next/dist/client/components/router-reducer/handle-segment-mismatch.js.map
(1803B)
{"version":3,"sources":["../../../../src/client/components/router-reducer/handle-segment-mismatch.ts"],"sourcesContent":["import type { FlightRouterState } from '../../../server/app-render/types'\nimport { handleExternalUrl } from './reducers/navigate-reducer'\nimport type {\n ReadonlyReducerState,\n ReducerActions,\n} from './router-reducer-types'\n\n/**\n * Handles the case where the client router attempted to patch the tree but, due to a mismatch, the patch failed.\n * This will perform an MPA navigation to return the router to a valid state.\n */\nexport function handleSegmentMismatch(\n state: ReadonlyReducerState,\n action: ReducerActions,\n treePatch: FlightRouterState\n) {\n if (process.env.NODE_ENV === 'development') {\n console.warn(\n 'Performing hard navigation because your application experienced an unrecoverable error. If this keeps occurring, please file a Next.js issue.\\n\\n' +\n 'Reason: Segment mismatch\\n' +\n `Last Action: ${action.type}\\n\\n` +\n `Current Tree: ${JSON.stringify(state.tree)}\\n\\n` +\n `Tree Patch Payload: ${JSON.stringify(treePatch)}`\n )\n }\n\n return handleExternalUrl(state, {}, state.canonicalUrl, true)\n}\n"],"names":["handleSegmentMismatch","state","action","treePatch","process","env","NODE_ENV","console","warn","type","JSON","stringify","tree","handleExternalUrl","canonicalUrl"],"mappings":";;;;+BAWgBA;;;eAAAA;;;iCAVkB;AAU3B,SAASA,sBACdC,KAA2B,EAC3BC,MAAsB,EACtBC,SAA4B;IAE5B,IAAIC,QAAQC,GAAG,CAACC,QAAQ,KAAK,eAAe;QAC1CC,QAAQC,IAAI,CACV,sJACE,+BACA,CAAA,AAAC,kBAAeN,OAAOO,IAAI,GAAC,MAAI,IAChC,CAAA,AAAC,mBAAgBC,KAAKC,SAAS,CAACV,MAAMW,IAAI,IAAE,MAAI,IAChD,CAAA,AAAC,yBAAsBF,KAAKC,SAAS,CAACR,UAAW;IAEvD;IAEA,OAAOU,IAAAA,kCAAiB,EAACZ,OAAO,CAAC,GAAGA,MAAMa,YAAY,EAAE;AAC1D","ignoreList":[0]}
Save
cmd:
run