preload the neighbouring library tab

beyondViewportPageCount = 1 keeps the next tab's paging flow subscribed, so Artists
replays cached data instead of showing a spinner the first time it is opened.
This commit is contained in:
austinried
2026-10-04 00:30:00 +00:00
parent 9f250d49f2
commit c7bab22dc5
2 changed files with 4 additions and 5 deletions
@@ -335,6 +335,7 @@ fun LibraryScreen(
HorizontalPager(
state = pagerState,
modifier = Modifier.fillMaxSize(),
beyondViewportPageCount = 1,
) { page ->
val pageTab = LibraryTab.entries[page]
val resetKey = resetKeys[pageTab]