bvaughn / react-virtualized

React components for efficiently rendering large lists and tabular data
http://bvaughn.github.io/react-virtualized/
MIT License
26.1k stars 3.05k forks source link

InfiniteLoader, WindowScroller, AutoSizer, List use together,but only the first fetched data is loaded, I also tried it according to the official document code, but I did not achieve the data effect of scrolling rendering, I hope to get help #1741

Open shengbenqiang opened 2 years ago

shengbenqiang commented 2 years ago

Bug Report

What is the current behavior?

InfiniteLoader scrolling loadMoreRows method successfully obtains data, but only renders the data entered for the first time when scrolling

What is the expected behavior?

InfiniteLoader scrolling can render the acquired data list normally。I guess it may be the reason for the height. I did a simple test. In the case of a large height, the data can be continuously rendered. It's just my personal guess, I can't be sure.

Which versions of React and react-virtualized, and which browser / OS are affected by this issue? Did this work in previous versions of react-virtualized?

Browser chrome
OS Windows
React 17.0.2
React DOM 17.0.2
react-virtualized 9.22.3

code

`<div className={"home-list-house-list-con"}> {/ @ts-ignore /}

{({ onRowsRendered, registerChild }) => ( // @ts-ignore {({ height, isScrolling, scrollTop }) => ( // @ts-ignore {({ width }) => ( // @ts-ignore )} )} )}
        </div>`

1650769825(1)

The data below is not getting rendered

viniciusgrippe commented 2 years ago

I have this same issue over here. Any solution?

vickypanwala commented 2 years ago

I also have this same issue over here. Any solution?

nkemcels commented 1 year ago

This was a bug inside the WindowScroller feature of react-virtualized. So I extracted the feature, fix the bug and some other issues it had and pushed it as a standalone module to npm. You can install the module with yarn add rv-window-scroller or npm install rv-window-scroller

MykolaKhilko commented 5 months ago

rv-window-scroller

didn`t work for me, the same problem