Hook into Choo's events and timings. Useful to create loggers, analytics and more.
var Hooks =var choo =var app =app
hooks = Hooks(emitter)
Create a new Choo Hooks instance.
Listen for log events.
Listen for service worker event.
hook.on('event', cb(eventName, timing, data))
Called for events implemented at the application layer.
hook.on('use', cb(count, duration))
app.use() is called.
hook.on('unhandled', cb(eventName, data))
Called whenever an event is emitted, and there is no handler available.
Called whenever the DOM has loaded. Returns the
Called whenever Choo renders. Returns an object with the
Called whenever the browser's resource timing buffer has filled up.