@virtuous/conductor-events
v1.0.0
Published
A javascript router
Downloads
14
Readme
conductor-events
Event API for Conductor.
Installation
Using npm:
npm i @virtuous/conductor-events -S
Usage:
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.
onWillPush
onDidPush
onWillPop
onDidPop
onWillReplace
onDidReplace
onWillReset
onDidReset