This repository has been archived by the owner on Aug 7, 2024. It is now read-only.
[FEATURE] <Add Pagination to the Repos Page> #10054
Labels
⭐ goal: addition
undefined
🚦 status: awaiting triage
Waiting for maintainers to verify (please do not start work on this yet)
Is this a unique feature?
Is your feature request related to a problem/unavailable functionality? Please describe.
Currently, we are fetching every relevant
Repos
record and passing it to the front end. Instead, we can add pagination and make pages of 10 or 20Proposed Solution
Similar to how we are passing a query parameter of
sortBy
here,router.push(`/repos?sortBy=${e.currentTarget.value}`)
, we can also add the?page
parameter so that we can fetch a particular number of records from the backend.For eg, if the Page Number is 1, we'll fetch first 10 records, if it is 2, we'll fetch next 10 records and display it on the screen and so on.
Screenshots
No response
Do you want to work on this issue?
Yes
If "yes" to above, please explain how you would technically implement this
As I explained in the proposed solution, we can add the query parameter of
?page
and accordingly fetch relevant records.The text was updated successfully, but these errors were encountered: