/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/router-reducer.js (2159B)
import { ACTION_NAVIGATE, ACTION_SERVER_PATCH, ACTION_RESTORE, ACTION_REFRESH, ACTION_PREFETCH, ACTION_HMR_REFRESH, ACTION_SERVER_ACTION } from './router-reducer-types'; import { navigateReducer } from './reducers/navigate-reducer'; import { serverPatchReducer } from './reducers/server-patch-reducer'; import { restoreReducer } from './reducers/restore-reducer'; import { refreshReducer } from './reducers/refresh-reducer'; import { prefetchReducer } from './reducers/prefetch-reducer'; import { hmrRefreshReducer } from './reducers/hmr-refresh-reducer'; import { serverActionReducer } from './reducers/server-action-reducer'; /** * Reducer that handles the app-router state updates. */ function clientReducer(state, action) { switch(action.type){ case ACTION_NAVIGATE: { return navigateReducer(state, action); } case ACTION_SERVER_PATCH: { return serverPatchReducer(state, action); } case ACTION_RESTORE: { return restoreReducer(state, action); } case ACTION_REFRESH: { return refreshReducer(state, action); } case ACTION_HMR_REFRESH: { return hmrRefreshReducer(state, action); } case ACTION_PREFETCH: { return prefetchReducer(state, action); } case ACTION_SERVER_ACTION: { return serverActionReducer(state, action); } // This case should never be hit as dispatch is strongly typed. default: throw Object.defineProperty(new Error('Unknown action'), "__NEXT_ERROR_CODE", { value: "E295", enumerable: false, configurable: true }); } } function serverReducer(state, _action) { return state; } // we don't run the client reducer on the server, so we use a noop function for better tree shaking export const reducer = typeof window === 'undefined' ? serverReducer : clientReducer; //# sourceMappingURL=router-reducer.js.map