Update On Navigate (uon) is a tiny library that observes route changes and delivers updates through a callback.
- Small in size, no dependencies
- Observe native navigation
- Observe manual navigation
$ npm install --save uon
// Import the library
import uon from 'uon';
// Observe route changes
uon((route) => { ... });
The returned route will be the current pathname.
MIT © Colin van Eenige