-
-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
使用keepalive+suspense缓存asyncsetup组件时切换过快就会报错null of parentNode #5993
Labels
Comments
lopck
changed the title
使用keepalive+suspense缓存组件时切换过快就会触发
使用keepalive+suspense缓存asyncsetup组件时切换过快就会报错null of parentNode
May 26, 2022
希望提供一个最小的复现。 |
尝试在keepalive中加入include解决问题 |
我想问一下 |
include数组需要加入组件名,而不是路由名 |
使用 Nuxt3 时遇到同样的问题。我的 script 块中有个 |
对组件包一层div可以解决这个问题。 |
duplicate of #6463 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Vue version
3.2.36
Link to minimal reproduction
https://github.com/lopck/vue3-test
Steps to reproduce
What is expected?
如果组件还没加载完就切换应该是在后台继续加载,然后切换到你新的组件
What is actually happening?
在这里如果等一个组件加载完再切换其他的组件不会出问题,但是如果组件还没加载完成就切换到其他的组件,多点几次就会出问题,就是快速的来回切换多个组件就会触发这个bug
System Info
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: