Vue slot is updated after any data changed, even there is no dependency #12616
Unanswered
hzsrc
asked this question in
Help/Questions
Replies: 1 comment 1 reply
-
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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