Closed linxianxi closed 5 months ago
减少滚动时的 render 次数,只有 startIndex 和 endIndex 改变时才 render
如视频所示,在这范围滚动时,startIndex 和 endIndex 没有发生改变,不会 render 的。
https://github.com/react-component/virtual-list/assets/47104575/640d7749-f2b7-42e6-85e8-df9379126226
The latest updates on your projects. Learn more about Vercel for Git ↗︎
减少滚动时的 render 次数,只有 startIndex 和 endIndex 改变时才 render
如视频所示,在这范围滚动时,startIndex 和 endIndex 没有发生改变,不会 render 的。
https://github.com/react-component/virtual-list/assets/47104575/640d7749-f2b7-42e6-85e8-df9379126226