[Feature] Paginate very large playlists
Is your feature already implemented in the latest master?
No
Is your feature request related to a problem? Please describe. Not sure, tried searching the issues but came up empty.
Describe the solution you'd like When loading a very large playlist (thousands upon thousands of songs) the client takes a long time indexing all of them. Instead, it would be nice if the client could load pages (size around 100 maybe?) progressively as you scroll/play along.
Describe alternatives you've considered Pagination is a common concept when handling large lists, I haven't really considered other alternatives.
Additional context No
The pagination logic can probably be implemented by spawning an async task in background that lazily fetches the track data page-by-page and update the data stored in the state. In other words, the task should implement the logic in https://github.com/aome510/spotify-player/blob/b92c7379b192e6492ec37b722ecb9934e6803c2f/spotify_player/src/client/mod.rs#L1318-L1323
but instead update the state upon fetching a new page.
Duplicate of #502