A javascript router
npm install @virtuous/conductor-eventsnpm i @virtuous/conductor-events -S
js
import { onDidPush } from '@virtuous/conductor-events';
const myCallback = id => {
// do stuff
};
onDidPush(myCallback);
`
API
_Note:_ Each acallback receives an id` parameter representing the route that is in context i.e. the route that is being popped or pushed.