Vue slot is updated after any data changed, even there is no dependency #12616
Unanswered
hzsrc
asked this question in
Help/Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When we use slot, the component in the slot is updated after any data changed, even there is no dependency. Here is a sample(see console):
https://codepen.io/hzsrc/pen/gbYxOry
When this is used in a big component with hundreds of sub components, it cause big performance problems, the app runs very slowly.
Why this happen, is it a bug? How to avoid this ?
Beta Was this translation helpful? Give feedback.
All reactions