Neurotic and Probably Misinformed
Miss any of our Open RFC calls?Watch the recordings here! »

rx-history

1.0.4 • Public • Published

Observable.fromHistory

Create an Observable from a History object.

import createHistory from 'history';
 
let history = createHistory();
 
import { Observable } from 'rxjs';
import 'rx-history';
 
Observable.fromHistory(history)
  .pluck("pathname")
  .tap( (path) => {
    console.log("Path change!", path);
  });

Install

npm i rx-history

DownloadsWeekly Downloads

17

Version

1.0.4

License

MIT

Last publish

Collaborators

  • avatar