Skip to content

Implement a Load More button/functionality for giveaways list page #42

@Torvec

Description

@Torvec

While the gamerpower api does not seem to support limits/pages of data fetched to it's API. I can still have it only render the first 10 or 12 cards and then have a view more button at the bottom that will then render 10 or 12 more. Can improve render times/make it more snappy feeling.

Potential strategy per chatgpt:

  1. Fetch all results (you have no choice).
  2. Store them in state (say, allResults).
  3. Display only the first 10 (visibleResults = slice of allResults).
  4. On "Load More" click:
    • Expand visibleResults to include the next 10.
    • Repeat until all are shown.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions