Files
scrap/node_modules/next/dist/client/components/router-reducer/handle-segment-mismatch.d.ts
2024-09-24 03:52:46 +00:00

8 lines
536 B
TypeScript

import type { FlightRouterState } from '../../../server/app-render/types';
import type { ReadonlyReducerState, ReducerActions } from './router-reducer-types';
/**
* Handles the case where the client router attempted to patch the tree but, due to a mismatch, the patch failed.
* This will perform an MPA navigation to return the router to a valid state.
*/
export declare function handleSegmentMismatch(state: ReadonlyReducerState, action: ReducerActions, treePatch: FlightRouterState): import("./router-reducer-types").ReducerState;