Skip to content

js2me/mobx-location-history

Repository files navigation

logo

mobx-location-history

NPM version test status build status npm download bundle size

MobX charged history NPM package + other utilities

Documentaion is here

import { reaction } from "mobx"
import {
  createQueryParams,
  createBrowserHistory,
  createHashHistory,
  createMemoryHistory,
} from "mobx-location-history";

const history = createBrowserHistory();
// const history = createHashHistory();
// const history = createMemoryHistory();
const queryParams = createQueryParams({ history });

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

history.push('/home')

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

history.destroy();

Contribution Guide

Want to contribute ? Follow this guide

About

history package with MobX power

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Contributors 3

  •  
  •  
  •