-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
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
v-for not reusing existing elements #12937
Comments
unfortunately, this is also a problem for me |
This is because when scrolling down, vue updates the child nodes by comparing the first one with the next one, so each vnode will be updated. |
👀 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
2.7.14
Reproduction link
codepen.io
Steps to reproduce
What is expected?
Elements should not be re-rendered when scrolling down (same behavior as scroll up)
What is actually happening?
When scrolling up, only new elements are rendered.
When scrolling up, all elements are rendered
Work as expected in Vue 3 (codepen: https://codepen.io/thel-rico/pen/mdjqVZJ)
The text was updated successfully, but these errors were encountered: