-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
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:
- Fetch all results (you have no choice).
- Store them in state (say,
allResults
). - Display only the first 10 (
visibleResults
= slice ofallResults
). - On "Load More" click:
- Expand
visibleResults
to include the next 10. - Repeat until all are shown.
- Expand