From 28749fe04242331892de098e1d9e0ec057abe2db Mon Sep 17 00:00:00 2001 From: Gauvain Date: Sat, 4 Jul 2026 18:23:07 +0200 Subject: [PATCH] fix(tv): keep favorites lists mounted when all sections are empty The all-empty screen early-returned before mounting any collection list, so after a favorites/watchlist switch the stale all-empty state kept the lists unmounted and onEmptyStateChange could never fire again, leaving the screen stuck on the no-data view. Render the empty view inline with the lists instead, matching the mobile Favorites structure. --- components/home/Favorites.tv.tsx | 99 +++++++++++++++----------------- 1 file changed, 46 insertions(+), 53 deletions(-) diff --git a/components/home/Favorites.tv.tsx b/components/home/Favorites.tv.tsx index 89356058..88a556a5 100644 --- a/components/home/Favorites.tv.tsx +++ b/components/home/Favorites.tv.tsx @@ -155,58 +155,6 @@ export const Favorites = () => { /> ); - if (areAllEmpty()) { - return ( - - {tabBadges} - - - - {t(emptyTitleKey)} - - - {t(emptyTextKey)} - - - - ); - } - return ( { contentContainerStyle={{ paddingTop: insets.top + TOP_PADDING, paddingBottom: insets.bottom + 60, + flexGrow: 1, }} > - + {watchlistEnabled && ( {tabBadges} )} + {/* Rendered alongside the lists (never instead of them) so they stay + mounted and re-report emptiness on a favorites/watchlist switch; + an early return here would freeze the all-empty state. */} + {areAllEmpty() && ( + + + + {t(emptyTitleKey)} + + + {t(emptyTextKey)} + + + )}