Render slots in defineAsyncComponent.loadingComponent #647
Sergdan1992
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The loadingComponent in
defineAsyncComponent
omit render default slot. I want the slot content to be displayed when loading an asynchronous component, because if I use an asynchronous component, the slot content flashes after the asynchronous component is loaded.The solution to avoid the flashing is to remove
defineAsyncComponent
. But then the component is loaded on other pages, where it is not used.Link for reproduce
Is it posible to render the slot in createVNode?
Beta Was this translation helpful? Give feedback.
All reactions