2.0.10 • Published 6 months ago

mobx-location-history v2.0.10

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

mobx-location-history

Browser Location and History charged by MobX + other utilities

Observable browser History and Location interfaces + other utilities (like QueryParams)

import { reaction } from "mobx"
import { MobxHistory, MobxLocation, QueryParams } from "mobx-location-history";

const history = new MobxHistory()
const location = new MobxLocation(history);
const queryParams = new QueryParams(location, history);


reaction(() => location.href, href => {
  // do things
})

history.pushState(null, '', '/home')

queryParams.set({
  foo: 11,
  bar: 'kek',
  willBeRemoved: undefined,
})
1.0.3

8 months ago

2.0.3

7 months ago

2.0.2

8 months ago

2.0.5

7 months ago

2.0.4

7 months ago

2.0.7

7 months ago

2.0.6

7 months ago

2.0.9

7 months ago

2.0.10

6 months ago

2.0.8

7 months ago

2.0.1

8 months ago

2.0.0

8 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago

0.0.2

9 months ago

0.0.1

9 months ago