@evertbouw/rx-history

History observable for RxJS

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
00Jan 30, 2019May 17, 2018Minified + gzip package size for @evertbouw/rx-history in KB

Readme

fromHistory

Create an Observable from a History object.

import { createBrowserHistory } from "history";
import { fromHistory } from "@evertbouw/rx-history";

const history = createBrowserHistory();
const location$ = fromHistory(history);

location$.subscribe(([location, action]) => {
  console.log("Path change!", location.pathname, action);
});

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.