Skip to content
🐨 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
src Switch to TypeScript! May 17, 2019
.editorconfig
.gitignore
.npmrc Switch to TypeScript! May 17, 2019
LICENSE Initial commit! Jan 22, 2019
README.md Switch to TypeScript! May 17, 2019
package.json

README.md

Update On Navigate (uon)

npm version gzip size license dependencies TypeScript

Update On Navigate (uon) is a tiny 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

You can’t perform that action at this time.