Reference

@reckona/mreact-router/navigation-state

5 public exports.

Function

FunctiongetNavigationStatefunction getNavigationState(): AppRouterNavigationStateReads the current client navigation state snapshot.FunctionsubscribeNavigationStatefunction subscribeNavigationState(listener: AppRouterNavigationStateListener): (): voidSubscribes to app-router client navigation state changes.

Interface

InterfaceAppRouterNavigationStateinterface AppRouterNavigationStateDescribes the latest client-side app-router navigation state.

Type Alias

Type AliasAppRouterNavigationStateListenertype AppRouterNavigationStateListener = (state: AppRouterNavigationState): voidReceives app-router client navigation state updates.Type AliasAppRouterNavigationTypetype AppRouterNavigationType = "push" | "replace" | "pop" | "refresh"Names the client navigation operation that produced the current router state.