MobX State Router

MobX State Router

  • Docs
  • GitHub

›API

Guides

  • Getting Started
  • Recipes
  • Examples

API

  • Route
  • RouterLink
  • RouterState
  • RouterStore
  • RouterView
  • HistoryAdapter
  • StaticAdapter

HistoryAdapter

The HistoryAdapter keeps the browser address bar in sync with the RouterState.

class HistoryAdapter {
    constructor(routerStore: RouterStore, history: History);

    // go to the specified location
    goToLocation = (location: Location): Promise<RouterState>;

    // go back in history
    goBack();

    // observe browser address bar and router state and keep them in sync
    observeRouterStateChanges();
}
← RouterViewStaticAdapter →
Copyright © 2021 Naresh Bhatia