Reference
@reckona/mreact-router/navigation-state
5 public exports.
Function
FunctiongetNavigationState
function getNavigationState(): AppRouterNavigationStateReads the current client navigation state snapshot.FunctionsubscribeNavigationStatefunction subscribeNavigationState(listener: AppRouterNavigationStateListener): (): voidSubscribes to app-router client navigation state changes.Interface
Type Alias
Type AliasAppRouterNavigationStateListener
type 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.