🐨 A tiny 200b route change observer.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
demo Initial commit! Jan 22, 2019
src Initial commit! Jan 22, 2019
.gitignore Initial commit! Jan 22, 2019
LICENSE
README.md Initial commit! Jan 22, 2019
package.json Initial commit! Jan 22, 2019

README.md

Update On Navigate (uon)

npm version gzip size license dependencies

Update On Navigate (uon) is a 200b library that observes route changes and delivers updates through a callback.

Features:

  • Small in size, no dependencies
  • Observe native navigation
  • Observe manual navigation

Install

$ npm install --save uon

Usage

// Import the library
import uon from 'uon';

// Observe route changes
uon((route) => { ... });

The returned route will be the current pathname.

License

MIT © Colin van Eenige