react-infinite-scroll-component
react-infinite-scroll-component copied to clipboard
loader still shows if empty array returned from api
the loader still showing eventhough the api returns empty array. is there any props to show "No Items Found" message when api returns empty array?
Please watch this video for this library https://youtu.be/c0nKjMnDfG4
Please watch this video for this library https://youtu.be/c0nKjMnDfG4
Is there an English video?
Reference to the video,you can set an expression to hasMore,and all you need just to init totalCount:
const totalCount = 1
And then:

Besides, after data updated, remember to update the value of totalCount.