-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to manually unmount Vue from the dom element components #593
Comments
You can do like this.
|
Maybe should add some api like |
用这个方法可以实现 |
In Vue3, I tried the following code, and it can unmount an component (not the whole app):
this.$.ctx.renderer.um(vnode, keepAliveInstance, keepAliveInstance.suspense) |
After the project is packaged, keepAliveInstance.__v_cache does not get the value |
after build not find __v_cache |
vue2 in nuxt, 为何调用根结点的 |
What problem does this feature solve?
我希望在 React 元素 unmount 时 ,Vue 元素也能够 unmount。
I hope in the React unmount to elements, also able to unmount to Vue elements.
but now vueInstance.$destroy is undefined...
What does the proposed API look like?
vueInstance.$destroy()
release resources,call beforeUnMount、
The text was updated successfully, but these errors were encountered: