From 9cc4d36acb6cecf6d80a41a11ef455bc3dfd9bd9 Mon Sep 17 00:00:00 2001 From: Altay Date: Sun, 15 Nov 2026 13:01:04 +0300 Subject: [PATCH] perf(tv): History hand-off never compares whole lists on the main thread --- .../main/kotlin/io/putdotio/android/tv/history/TvHistoryList.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tv/src/main/kotlin/io/putdotio/android/tv/history/TvHistoryList.kt b/tv/src/main/kotlin/io/putdotio/android/tv/history/TvHistoryList.kt index e89a244a1..976477b7a 100644 --- a/tv/src/main/kotlin/io/putdotio/android/tv/history/TvHistoryList.kt +++ b/tv/src/main/kotlin/io/putdotio/android/tv/history/TvHistoryList.kt @@ -92,7 +92,7 @@ private fun HandOffToLastRow( lastRow: FocusRequester, mayTakeFocus: () -> Boolean, ) { - LaunchedEffect(handOff.pending.value, built, entries) { + LaunchedEffect(handOff.pending.value, built, entries.size, entries.lastOrNull()?.key) { if (!handOff.pending.value || !built) return@LaunchedEffect listState.bringIntoComposition(entries.last().key, entries.lastIndex) withFrameNanos {}