Type Alias HistoryState<C>

HistoryState<C>: Readonly<{
    path: string;
    context?: C;
}>

Describes the router-specific state stored in the history.

Type Parameters

  • C

Type declaration

  • path: string

    The path to navigate to.

  • Optionalcontext?: C

    Any data that needs to be sent to Route.action.