[Vuejs]-Why beforeRouteUpdate not working when I return to first page?

0👍

Your components are cached by vue. So, you need to use keep-alive. This will keep your component fresh and it will not allow to render component from cache.

Note:

When a component is toggled inside , its activated and deactivated lifecycle hooks will be invoked accordingly.

<keep-alive> does not work with functional components because they do not have instances to be cached.

0👍

My error was in my code. I not call next() in beforeRouteUpdate.
Now all working good

👤tolyan

Leave a comment