Description
The Discover page currently loads all events in one fetch. Once the backend pagination endpoint is live, the frontend needs a "Load More" button to request subsequent pages.
Tasks
- Add a
page state variable to the Discover page, initialised at 1.
- Append new results to the existing event list on each "Load More" click.
- Hide the button when the API
meta.total count has been reached.
- Show a loading spinner inside the button while fetching.
Acceptance Criteria
- Clicking "Load More" appends the next page of results without replacing existing cards.
- Button disappears when all events have been loaded.
- No duplicate event cards appear across pages.
Dependencies
- Depends on server-side pagination being live on the backend.
Description
The Discover page currently loads all events in one fetch. Once the backend pagination endpoint is live, the frontend needs a "Load More" button to request subsequent pages.
Tasks
pagestate variable to the Discover page, initialised at 1.meta.totalcount has been reached.Acceptance Criteria
Dependencies