/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/handle-mutable.js (3446B)
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); Object.defineProperty(exports, "handleMutable", { enumerable: true, get: function() { return handleMutable; } }); const _computechangedpath = require("./compute-changed-path"); function isNotUndefined(value) { return typeof value !== 'undefined'; } function handleMutable(state, mutable) { var _mutable_shouldScroll; // shouldScroll is true by default, can override to false. const shouldScroll = (_mutable_shouldScroll = mutable.shouldScroll) != null ? _mutable_shouldScroll : true; let nextUrl = state.nextUrl; if (isNotUndefined(mutable.patchedTree)) { // If we received a patched tree, we need to compute the changed path. const changedPath = (0, _computechangedpath.computeChangedPath)(state.tree, mutable.patchedTree); if (changedPath) { // If the tree changed, we need to update the nextUrl nextUrl = changedPath; } else if (!nextUrl) { // if the tree ends up being the same (ie, no changed path), and we don't have a nextUrl, then we should use the canonicalUrl nextUrl = state.canonicalUrl; } // otherwise this will be a no-op and continue to use the existing nextUrl } var _mutable_scrollableSegments; return { // Set href. canonicalUrl: isNotUndefined(mutable.canonicalUrl) ? mutable.canonicalUrl === state.canonicalUrl ? state.canonicalUrl : mutable.canonicalUrl : state.canonicalUrl, pushRef: { pendingPush: isNotUndefined(mutable.pendingPush) ? mutable.pendingPush : state.pushRef.pendingPush, mpaNavigation: isNotUndefined(mutable.mpaNavigation) ? mutable.mpaNavigation : state.pushRef.mpaNavigation, preserveCustomHistoryState: isNotUndefined(mutable.preserveCustomHistoryState) ? mutable.preserveCustomHistoryState : state.pushRef.preserveCustomHistoryState }, // All navigation requires scroll and focus management to trigger. focusAndScrollRef: { apply: shouldScroll ? isNotUndefined(mutable == null ? void 0 : mutable.scrollableSegments) ? true : state.focusAndScrollRef.apply : false, onlyHashChange: mutable.onlyHashChange || false, hashFragment: shouldScroll ? // #top is handled in layout-router. mutable.hashFragment && mutable.hashFragment !== '' ? decodeURIComponent(mutable.hashFragment.slice(1)) : state.focusAndScrollRef.hashFragment : null, segmentPaths: shouldScroll ? (_mutable_scrollableSegments = mutable == null ? void 0 : mutable.scrollableSegments) != null ? _mutable_scrollableSegments : state.focusAndScrollRef.segmentPaths : [] }, // Apply cache. cache: mutable.cache ? mutable.cache : state.cache, prefetchCache: mutable.prefetchCache ? mutable.prefetchCache : state.prefetchCache, // Apply patched router state. tree: isNotUndefined(mutable.patchedTree) ? mutable.patchedTree : state.tree, nextUrl }; } if ((typeof exports.default === 'function' || (typeof exports.default === 'object' && exports.default !== null)) && typeof exports.default.__esModule === 'undefined') { Object.defineProperty(exports.default, '__esModule', { value: true }); Object.assign(exports.default, exports); module.exports = exports.default; } //# sourceMappingURL=handle-mutable.js.map