Paginated list - FlatList with REST api #154
daf-github
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I recently came across your fantastic tutorial on Building the LinkedIn Backend with GraphQL and Stepzen (LinkedIn Clone), and I was inspired by the pagination functionality you demonstrated. I'm reaching out with a request for a tutorial that dives into implementing a similar pagination feature but with a different backend—specifically, using a simple REST API.
In the envisioned tutorial, it would be incredibly helpful if you could guide us on implementing pagination through straightforward REST API requests, allowing us to pass parameters such as page size and page index to retrieve blocks of records on demand. Drawing from your expertise, I believe this would be immensely valuable for the developer community.
To provide a bit more context, I'm particularly interested in replicating the pagination approach you showcased in the Home Feed Screen of the Instagram Clone. Here's a snippet of the code I'm referring to:
<FlatList
data={data.postPaginatedList}
renderItem={({ item }) => }
showsVerticalScrollIndicator={false}
contentContainerStyle={{ gap: 10 }}
onEndReached={loadMore}
refreshing={loading}
onRefresh={refetch}
/>
Your guidance on adapting this pagination logic to work with a different backend, utilizing REST API requests and configurable parameters, would be immensely appreciated.
Thank you in advance for considering my request. I'm confident that a tutorial on this topic would benefit many developers in the community.
Best regards,
Daniel
Beta Was this translation helpful? Give feedback.
All reactions