mirror of
https://github.com/rommapp/romm.git
synced 2026-11-30 02:22:44 +01:00
Play-all and the browse selections still resolved their whole queue up front, which on a large library meant ~100 parallel /music/tracks requests before anything rendered. They now load one 200-track page and fetch the next only as the viewer scrolls toward the end of what is loaded, or as playback approaches it. The panel reports the furthest index reached and the new useTrackPager turns that into at most one in-flight page, dropping any page that arrives after the selection changed. getAllFavorites goes away with its last caller; getAllTracks stays for the one list that is small by construction (a single game's soundtrack). Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>