Skip to content

perf: Add virtual scrolling for stream lists with 100+ entries #156

Description

@Austinaminu2

Description

The dashboard and streams page render all stream cards in a flat list. For power users (companies, DAOs) with hundreds of streams, this causes:

  • Slow initial render (all DOM nodes created at once)
  • High memory usage (all cards in DOM simultaneously)
  • Scroll jank on lower-end devices

Current Behavior

fetchStreamsForAddress returns up to 1,000 stream IDs, and the UI renders a card for each. With 500 streams, that's 500+ DOM nodes created on mount.

Proposed Solution

Use a virtualization library like @tanstack/react-virtual or react-window to only render stream cards visible in the viewport (plus a small overscan buffer).

Acceptance Criteria

  • Stream lists virtualized — only visible cards are in the DOM
  • Smooth scrolling with no visible pop-in or flicker
  • Overscan buffer of 3-5 items above and below viewport
  • Dynamic row heights supported (stream cards may vary in height)
  • Performance improvement measurable: render time < 100ms for 500 streams
  • Fallback to flat list for < 50 streams (virtualization overhead not worth it)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programfrontendNext.js frontendperformancePerformance optimization

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions