Added onRouteComposed hook to router.