This fixes issue my previous PR fixed in #50 however also accounts for cases where the template/root vnode is not a component but a layout like <GridLayout>.
With this change, we patch the vnode with a null vnode - causing vue to properly dispose the whole subtree and triggering all the beforeDestroy and destroyed hooks correctly.
This fixes issue my previous PR fixed in #50 however also accounts for cases where the template/root vnode is not a component but a layout like
<GridLayout>
.With this change, we patch the vnode with a
null
vnode - causing vue to properly dispose the whole subtree and triggering all thebeforeDestroy
anddestroyed
hooks correctly.