/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/handle-mutable.js (2887B)
import { computeChangedPath } from './compute-changed-path'; function isNotUndefined(value) { return typeof value !== 'undefined'; } export 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 = 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 }; } //# sourceMappingURL=handle-mutable.js.map