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

Cache existing post order when loading next page. #3547

Closed
4 tasks done
xthexder opened this issue Jul 8, 2023 · 1 comment
Closed
4 tasks done

Cache existing post order when loading next page. #3547

xthexder opened this issue Jul 8, 2023 · 1 comment
Labels
area: api enhancement New feature or request

Comments

@xthexder
Copy link

xthexder commented Jul 8, 2023

Requirements

  • Is this a feature request? For questions or discussions use https://lemmy.ml/c/lemmy_support
  • Did you check to see if this issue already exists?
  • Is this only a feature request? Do not put multiple feature requests in one issue.
  • Is this a backend issue? Use the lemmy-ui repo for UI / frontend issues.

Is your proposal related to a problem?

Currently when reading through posts on an active community, by the time I get to the bottom and hit "Next Page" more posts and comments are made, pushing many of the Page 1 posts onto Page 2, making me see half the same posts again.

This is rather annoying, since it means means it's possible to miss posts entirely if they happen to move between pages at the wrong time.

Describe the solution you'd like.

Reddit seems to cache a single post order until you do a full page refresh or your session gets too old. It's unclear to me if this is a client-side session thing or if the server actually keeps track of the historical post order for the user.

Describe alternatives you've considered.

A client could potentially make multiple page requests at a time and resort / deduplicate posts itself, however backend integration in the API would definitely be preferred for performance.

Additional context

No response

@Nutomic
Copy link
Member

Nutomic commented Oct 2, 2023

#3872

@Nutomic Nutomic closed this as completed Oct 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: api enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants