Expected behavior
When attaching a callback to state.events.NAVIGATE, and navigating to a new route, I expect state.route to represent the current route.
Actual behavior
Instead, state.route is out of date. It should displaying the current route, but instead shows the previous. For example, if navigating from a route called /cute to one called /nice, it will return /cute.
function model (state, emitter) {
emitter.on(state.events.NAVIGATE, function () {
console.log(state.route)
})
}