Socket
Socket
Sign inDemoInstall

mobx-router

Package Overview
Dependencies
11
Maintainers
3
Versions
27
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
23Next

1.0.0

Diff

thdk
published 0.3.0 •

thdk
published 0.2.12 •

thdk
published 0.2.11 •

thdk
published 0.2.10 •

thdk
published 0.2.8 •

Changelog

Source

0.2.8 (2020-08-21)

Add support for hash based routing. #98

thdk
published 0.2.9 •

thdk
published 0.2.7 •

Changelog

Source

0.2.7 (2020-04-26)

Breaking changes:

  • RouterStore requires mobx store to be passed into its constructor. -> 4aab7a92146e3798f74c23848bd2085dc19d1ce5
class RootStore {
    public router: RouterStore<RootStore>;

    constructor() {
        this.router = new RouterStore<RootStore>(this);
    }
}

const store = new RootStore();
  • MobxRouter component now requires a mobx store as a prop -> 7e4cb8b7bd1b281b69a7063e7240e8385fa304e8
<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:

  • Typescript support -> 42d48a398a8f9c17be19d7e9c8832e6187c60f03
kitze
published 0.0.20 •

kitze
published 0.0.19 •

23Next
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc