2.0.10 • Published 9 months ago
mobx-location-history v2.0.10
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
11 months ago
2.0.3
10 months ago
2.0.2
10 months ago
2.0.5
10 months ago
2.0.4
10 months ago
2.0.7
10 months ago
2.0.6
10 months ago
2.0.9
9 months ago
2.0.10
9 months ago
2.0.8
9 months ago
2.0.1
10 months ago
2.0.0
10 months ago
1.0.2
11 months ago
1.0.1
11 months ago
1.0.0
11 months ago
0.0.2
11 months ago
0.0.1
11 months ago