MobX State Router

MobX State Router

  • Docs
  • GitHub

›API

Guides

  • Getting Started
  • Recipes
  • Examples

API

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

StaticAdapter

The StaticAdapter drives RouterState programmatically (as oppsed to manually by the Browser bar). This is useful in server-side rendering scenarios where the user isn’t actually clicking around, so the location never actually changes. Hence, the name static.

class StaticAdapter {
    constructor(routerStore: RouterStore);

    // go to the specified location
    goToLocation = (location: Location): Promise<RouterState>;
}
← HistoryAdapter
Copyright © 2021 Naresh Bhatia