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.
Source:stackexchange.com