In one of my components the hook beforeRouteEnter is not being called.
The route to this component looks like...
{
path: '/blunders/:gameID',
name: 'Blunders',
component: () => import('../views/Blunders.vue'),
},
My beforeRouteEnter looks like ...
created () {
//....
},
beforeRouteEnter (to, from, next) {
console.log("Before Route Enter") //doesn't log
next(vm => {
console.log("VMVMVMVMVMVVM") // doesn't log
});
},
If I add the exact same beforeRouteEnter() to a different component with route...
{
path: '/user',
name: 'User',
component: () => import('../views/User.vue')
},
... it works fine. Why would it work here but not in the other component?