Skip to content
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

perf: optimize the number of renders during scrolling #276

Closed

Conversation

linxianxi
Copy link
Contributor

@linxianxi linxianxi commented May 24, 2024

减少滚动时的 render 次数,只有 startIndex 和 endIndex 改变时才 render

如视频所示,在这范围滚动时,startIndex 和 endIndex 没有发生改变,不会 render 的。

2024-05-24.15.42.46.mov

Copy link

vercel bot commented May 24, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
virtual-list ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 24, 2024 7:48am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant