-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix broken pagination for lists tab on profile page #6221
Fix broken pagination for lists tab on profile page #6221
Conversation
It's marked as optional, so if it's not working without it, we should figure out why and fix that instead. |
That's a good question. On this component, I think I came up with the number |
Hmm, is zero broken as in "it doesn't work even when reaching end directly"? We could maybe just change the default to |
I investigated a bit more, and here are my findings. The lists tab has another issue - it's missing a footer component that displays a loading spinner when it reaches the end and pulls the next page. And it's related to the reported issue. For other lists, when we don't have to display a loading spinner, we still display an empty view that has a certain height. And that seems required for the list to display the entire list without being cut off at the end and I've updated the However, I think defaulting |
Fixes: #6204
Summary
onEndReached
is not triggered for theProfileLists
component, and it seemsonEndReachedThreshold
must be set.The issue is specific to the desktop.
Solution
Set
onEndReachedThreshold
to 2. I've tested and confirmed it's working across all different platforms (android, iOS and web)Recording
https://github.com/user-attachments/assets/f94a2f55-c6d7-4152-bf88-d69e0d38fe20