Skip to content

EXPERIMENT: Think up how to deal with infinite scroll, context for threads, posts #6

Description

@DarthHater

This is something that I'd been toying with.

The previous implementation of pgboard had a function that would take you to where you had last read a thread.

I think for this ticket what would be nice to see is:

  • The GET threads endpoint should do some form of paging, I don't know if we want to return EVERY thread ever (but if this is fine, tell me so)
  • The GET posts endpoint would accept some sort of "beginning post" so that when you go to read a thread you can get say maybe only the posts AFTER you read, maybe?
  • The GET posts endpoint allows you to get a range maybe? This could be for when you scroll up in an infinite scroll type of scenario?

What I'm sensitive to is we probably don't want to be sending the entire Donald Trump thread over the wire, just enough for someone to dive back in, and then maybe allow them to scroll back up.

This is an experimental type of thing, so have fun with it.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions