mobx-router
Advanced tools
Changelog
0.2.7 (2020-04-26)
Breaking changes:
class RootStore {
public router: RouterStore<RootStore>;
constructor() {
this.router = new RouterStore<RootStore>(this);
}
}
const store = new RootStore();
<MobxRouter store={store} />
Link component: renamed view
prop to route
Renamed public property currentView
of RouterStore to currentRoute
. -> f5ce4942992f74231ac82cd38310525b935857c6
Removed goTo method from Route object. Use store.router.goTo(Route, ...)
instead.
goTo
signature changed from 4 to 3 arguments. Passing through the entire store
is no longer required here.
Features: