Have ideas to improve npm?Join in the discussion! »

    @evertbouw/rx-history
    TypeScript icon, indicating that this package has built-in type declarations

    1.1.1 • Public • Published

    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);
    });

    Install

    npm i @evertbouw/rx-history

    DownloadsWeekly Downloads

    3

    Version

    1.1.1

    License

    MIT

    Unpacked Size

    16 kB

    Total Files

    15

    Last publish

    Collaborators

    • avatar