API Utils
onBeforeRouteLeave
The onBeforeRouteLeave composable allows registering a route guard within a component.
onBeforeRouteLeave
The onBeforeRouteLeave
composable adds a navigation guard that triggers whenever the component for the current location is about to be left.
Read more in Missing link.