2.0.10 • Published 10 months ago

mobx-location-history v2.0.10

Weekly downloads
-
License
MIT
Repository
github
Last release
10 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

12 months ago

2.0.3

11 months ago

2.0.2

11 months ago

2.0.5

11 months ago

2.0.4

11 months ago

2.0.7

11 months ago

2.0.6

11 months ago

2.0.9

10 months ago

2.0.10

10 months ago

2.0.8

10 months ago

2.0.1

11 months ago

2.0.0

11 months ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago