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

Add paging to content pages (like Members, Blogs, Events) #50

Open
j-hariharan opened this issue Jan 7, 2025 · 0 comments
Open

Add paging to content pages (like Members, Blogs, Events) #50

j-hariharan opened this issue Jan 7, 2025 · 0 comments
Assignees

Comments

@j-hariharan
Copy link
Contributor

The list of items in these pages are currently reasonable in number, but over time, they will probably grow large. It is inefficient to fetch and display all the items in a single page. Instead, it is better to fetch a limited number (say 20) at a time, and have following pages to show subsequent items.

This task would involve using the limit query in Strapi. Keep in mind that, similar to the current implementation, we want all requests to Strapi to be made from Server-Side NextJS. To achieve paging with this constraints, you might have to make either a separate endpoint in NextJS to get subsequent page-data (not recommended), or use Server Actions (like has been done for the alumni section of Members page, recommended).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants