Maybe better if `onBeforeRoute` will be as event, not as option? Just for more flexibility.
Maybe better if
onBeforeRoutewill be as event, not as option? Just for more flexibility.