Skip to content

Add infinite scroll to creator discovery list as an alternative to pagination #577

Description

@Chucks1093

Summary

The current pagination controls require the user to click to load more creators. An infinite scroll implementation should automatically fetch the next page when the user scrolls near the bottom of the list, reducing friction during discovery.

Scope

  • Use an Intersection Observer to detect when the last visible creator card is within 200px of the viewport bottom
  • Trigger a fetch for the next page cursor when the observer fires
  • Append new results to the existing list rather than replacing it
  • Show a small loading spinner at the bottom of the list while the next page is fetching
  • Stop observing when the API returns no next cursor

Acceptance Criteria

  • Next page fetched automatically when user scrolls near the bottom
  • Results appended to existing list, not replaced
  • Loading spinner visible during next page fetch
  • Observer disconnected when no more pages are available
  • Scroll position preserved after new results append

ETA: 12 hours


Coordinate on Telegram

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions