Skip to content

vaneenige/uon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

🐨 A tiny 200b route change observer.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published