react-infinite-scroll-component
react-infinite-scroll-component copied to clipboard
Please modify the npm docs and mention that for the dataLength prop we need to pass the actual length of the data that we are currently rendering.
I stumbled upon an issue where I wasnt able to fetch more data, the next function was not being called after spending some time with the code I searched online and found this answer. https://stackoverflow.com/questions/67699376/react-infinite-scroll-component-stopped-working-after-one-call-loadmore-only
it would be wise if we modify and docs and mention whats the proper value that needs to be passed for dataLength