You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This demo implements virtual scrolling, not infinite scrolling, because the length of the data is declared by the data source before the component is created, and the scrolling is infinite. The premise of "infinite" is that the total length of the data is unknown, but the full amount of data is not at the front end. In memory, each time through the request backend to get the data data of the specified specified page, this is still a virtual scrolling strategy.
What is actually happening?
The best implementation of infinite scrolling is the browser's content page on the mobile side. Only when the bottom of the viewport is scrolled to request new data, the total length of the data is updated. The slider height of the scroll bar is reduced with continuous pulldown. of.
Reproduction link
https://stackblitz.com/run
Steps to reproduce
nz-list的无限滚动demo
What is expected?
这个demo实现的是虚拟滚动,并非无限滚动,因为在组件创建前就通过数据源声明了数据的长度,无限滚动,“无限”的前提是不知道数据的总长度,只不过全量的数据不在前端内存中,每次通过请求后端来获取指定指定分页的数据数据,这个还是虚拟滚动的策略。
What is actually happening?
无限滚动的最好实现是移动端的浏览器内容页,只有当每次滚动视口底部才会去请求新的数据,更新数据的总长度,滚动条的滑块高度是随着不断下拉而减小的。
请实现真实的无限滚动
The text was updated successfully, but these errors were encountered: