Allow backwards search through cursor-based APIs #1834
Replies: 4 comments 3 replies
-
This is by far the most common feature request I get, I'd love to see this |
Beta Was this translation helpful? Give feedback.
-
This functionality seems reasonable! The semantics of Rolling this out would require implementation by third party feed generators. Maybe feed generators would need a way to indicate whether they actually support this functionality, otherwise things could get janky and out-of-order when switching scroll order. cc: @pfrazee @devinivy @whyrusleeping for product and backend thoughts. |
Beta Was this translation helpful? Give feedback.
-
@bnewbold for the time being, it would be great to get some info on the cursor formats used for standard feeds like e.g. Being able to do this now just for the actor timeline would already be very useful. For other feeds, the UI can tell the user that scroll position memoization is not supported for now. |
Beta Was this translation helpful? Give feedback.
-
Some more context in case it's helpful: bluesky-social/social-app#976 requests this feature in the app (mainly for the Following feed, seems to be the consensus) and it currently has 29 👍. |
Beta Was this translation helpful? Give feedback.
-
As a user I'd like to retain my reading position within a feed when the app refreshes the feed in the background.
Consider the following scenario: the user has loaded a feed of 30 posts. The user then scrolls down to post # 20 and subsequently closes the app. When the user opens the app 2 hours later she/he is met with the same view that showed when the app was closed (post # 20). However, in the background the app should refresh the feed and show an indicator at the top that there is new content. The user can then scroll up and read all the new posts that have come in.
To implement the previous scenario I'd need to be able to hand over a
searchDirection
parameter to the APIs that allow to pass in acursor
. That way I could paginateinto the future
by handing over the latest cursor I have in my app and load all the content that is newer than thatcursor
. Right now I can only paginateinto the past
.I hope this makes sense :)
Beta Was this translation helpful? Give feedback.
All reactions