Subscribe on changes!

onBeforeUnmount and onUnmounted hook of component created by render function is not invoked

avatar
May 30th 2023

Manually mounting a component with render means it's not part of the main app's tree, so it won't be unmounted when a parent unmounts. You would need to unmount it yourself.

avatar
May 30th 2023

Manually mounting a component with render means it's not part of the main app's tree, so it won't be unmounted when a parent unmounts. You would need to unmount it yourself.

Thanks, how to unmount it?I can't find any way to do it in documentation. @LinusBorg

avatar
May 30th 2023

render(null, wrapperRef.value)

avatar
May 30th 2023

Thanks, it works. @LinusBorg