Open jazwu opened 1 year ago
I'm facing the same issue. I think what's happening is that the it's only fetching new elements on hard top position, not a margin. So when you reach the end, and it loads more the new elements are added but since you're at the top it'll just append them and you're still stuck at the top so it'll fetch more.
IMO it would be better if there was margin to configure like if you're 10% away from the end load more or something
When I scroll the bar just once to the top to load more messages,
onYReachStart()
is triggered multiple times. Meanwhile, when I first click the chat user (if I don't click, I won't see the chat page), the chat page shows andonYReachStart()
is triggered once automatically. MyonYReachStart()
code is as below (this.state.noMoreMessages === true
if there is no more messages to load and vice versa ):