onBeforeRouteUpdate

The onBeforeRouteUpdate composable adds a navigation guard that triggers whenever the component for the current location is about to be updated.