Skip to content
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

Instead of loading all the posts since the last loaded post, we should load the latest batch of posts and show a button to load the rest #21

Open
EdwardHinkle opened this issue Jan 30, 2018 · 0 comments
Assignees

Comments

@EdwardHinkle
Copy link
Owner

As described in this issue:

Over here (IndiePass/indiepass-ios#73 (comment)) it was mentioned the idea that a user that hasn't opened a Indigenous in a week might have 500 posts sitting in a channel and that it would be a lot of data to load.

This is actually a very realistic scenario, and one I would like to be able to tackle in Indigenous. My favorite current approach is Tweetbot's "Load Missing Tweets"
tumblr_inline_n9yt8wvi0t1qz4hbm

How this would work is I would have the last posts I fetched when they previously opened the app (with it I would have that batches "before" token). When the channel is opened a week later, I do the standard timeline fetch with no modifiers, getting the current front posts as well as a before and after token.

What I would like to be able to do is to provide the "before" token from the previous group of posts, and the "after" token from the latest group of posts, and get an integer that provides how many posts exist in-between those two tokens. This would enable me to then provide a "load missing posts" button by using either the before token to get older posts or the after token to get newer posts. Eventually, removing the "Load Missing Posts" button when there are no more posts left. (I'm thinking it would technically load 10-20 posts for every click and provide some metric letting them know how many more posts are missing.

@EdwardHinkle EdwardHinkle self-assigned this Jan 30, 2018
@EdwardHinkle EdwardHinkle transferred this issue from IndiePass/indiepass-ios May 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant