@evertbouw/rx-history

History observable for RxJS

Stats

StarsIssuesVersionUpdatedCreatedSize
@evertbouw/rx-history
001.1.14 years ago4 years agoMinified + 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.