how do i force vue to deactivate and re-create the component?

<router-view :key="$route.fullPath" />

Just be aware that this only forces router to destroy/create component and has no effect on router hooks – for example beforeEnter hook will not be called even that target component is destroyed and new one is created…

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top