this post was submitted on 12 Jul 2023
10 points (91.7% liked)

Lemmy App Development

728 readers
1 users here now

A place for Lemmy builders to chat about building apps, clients, tools and bots for the Lemmy platform.

On-Topic:

Off-Topic:

founded 2 years ago
MODERATORS
10
submitted 2 years ago* (last edited 2 years ago) by Cr4yfish to c/[email protected]
 

Since the docs are horrible I think making a megathread here with Q&As and best practices for endpoints would be nice. Would've certainly helped me when I started out.

What do you guys think?

you are viewing a single comment's thread
view the rest of the comments
[โ€“] Cr4yfish 1 points 2 years ago (1 children)

What's the exact problem with the pagination? Basically you set the page param to the page you want to receive. The amount of pages is unknown to the client, you just know how many per Page you receive (the limit).

However, I'd recommend to make infinite scrollers anyway.

[โ€“] [email protected] 1 points 2 years ago

i'm just unsure how to actually correctly fetch the next set items in order to update display, whether for scrolling or paginating. for my client i just want to append at the bottom of the screen.