Open Code-Guru-007 opened 4 months ago
What is your scrollable region?
If it's the <InfiniteScroll />
itself, pass fixed height and overflow.
If it's some parent pass the scrollableTarget
prop.
I'm experiencing an issue where the next function of the InfiniteScroll component doesn't seem to work as expected. I've tried implementing a simple alert inside the next function, but nothing happens when I scroll to the end of the list.
To have the feature working it requires a fixed height and overflow as mentioned above. I used :
height: some calculated value,
overflowY: 'scroll',
position: 'sticky',
But also to keep in mind the children that you are passing to the Component. In your case the children is not an array of items but a wrapping component. In this case we must use hasChildren prop as false.
May I ask is it possible make it trigger next function even if the data is not overflow
I'm experiencing an issue where the next function of the InfiniteScroll component doesn't seem to work as expected. I've tried implementing a simple alert inside the next function, but nothing happens when I scroll to the end of the list.
Thank you.