beforeRouteEnter
The beforeRouteEnter guard is a navigation guard in Vue Router. It is invoked before a route is entered. This guard is primarily used for fetching data that is required for the component before it is rendered. Unlike other route guards, beforeRouteEnter has access to the `next` callback which must be called to resolve the navigation. The `next` callback can either be called with a boolean to indicate whether to proceed with the navigation, or with a new route object to redirect.
The most distinctive feature of beforeRouteEnter is that the component instance is not yet created when this
The signature of beforeRouteEnter is: `(to, from, next) => { ... }`. The `to` and `from` arguments are Route objects