-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Viewing Likes tab/page for an account/profile/user with no liked posts causes infinite spinner/loop XHR [web] #4879
Comments
I noticed that the infinite spinner also shows up if you've only liked a few posts and you scroll down and reach the end of your likes. |
This also shows up on the regular Bluesky web app. |
I cannot reproduce this right now. There was momentarily an appview bug that we fixed shortly after it got deployed, so can you try again? @heikadog If you're seeing this currently it is likely a separate issue. Would be good if you could record a video! |
Thanks for pointing this out 🙏 I've corrected the description. |
I can still reproduce this on bsky.app in Safari (iPadOS 16.6.1) but not in 1.89 of the iOS/iPadOS app. |
Wait, does this only happen on iPad? Also @heikadog I cannot repro on bsky.app with Safari at least. |
I can reproduce this in:
Screen recording from my iPhone: RPReplay_Final1722973140.mp4 |
Ah, missed that it was specifically the likes tab. Thanks. |
If anyone is interested, I did a quick investigation. |
Scenarios to Reproduce the Error (tested on version 1.94.0)Scenario for 0 Likes:
Scenario for Few Likes:
It seems that the Issue 1The Note: The RN debugger struggles with handling infinite loops, so you can confirm this behavior by adding Demo: on_end_reached_called_multiple_times.mp4Issue 2When the list does not have at least Issue 3The API returns an invalid cursor when there are no likes or just a few likes or the last page for
This invalid cursor leads to continuous triggering of the above Scenarios:
50_requests_done_on_empty_list.mp4
infinite_requests_when_there_are_few_items.mp4
infinite_loop_last_page.mp4Potential WorkaroundA fix on the backend side would be to stop returning an invalid cursor when the API returns an empty It was used in the examples below, Proxyman to intercept the api request and change it to return a valid response when
solution-zero_items_dont_return_cursor.mp4
solution-keep_cursor_for_feed_not_empty_and_remove_for_feed_empty.mp4 |
issue still exists on the latest version |
An easy mitigation may be just reducing the failsafe limit added in |
Is this the same issue as not being able to load more than 32 liked posts on app or with api? Even if I use the api |
Describe the bug
When you're logged into an account which hasn't liked any posts yet and you view the Likes tab on web, it loads infinitely.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The spinner should stop and the No posts yet. screen should be displayed.
Screenshots
RPReplay_Final1722889075.mov
Details
EDIT: Updated description to make clearer and reflect that this still occurs on 1.92.1 on web.
The text was updated successfully, but these errors were encountered: