From 86b3e88f08376f10c7713fa432ba90d9b41eab04 Mon Sep 17 00:00:00 2001 From: jtrzupek Date: Fri, 12 Jun 2026 16:19:19 +0200 Subject: [PATCH] fix(mobile): remount Favorites lists on numColumns change (GOON-11) The new Scenes tab uses a 2-column FlatList while Performers/Studios/Movies are 1-column. Switching tabs reused the same FlatList instance, so numColumns changed on the fly and RN threw "Changing numColumns on the fly is not supported" (5 users). Give the Scenes list a distinct key ("fav-scenes") from the shared single-column key ("fav-list") so React remounts a fresh FlatList across the 1<->2 boundary. Co-Authored-By: Claude Fable 5 --- mobile/src/screens/FavoritesScreen.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mobile/src/screens/FavoritesScreen.tsx b/mobile/src/screens/FavoritesScreen.tsx index 8b662b5..8c5fd26 100644 --- a/mobile/src/screens/FavoritesScreen.tsx +++ b/mobile/src/screens/FavoritesScreen.tsx @@ -181,6 +181,9 @@ export function FavoritesScreen() { {tab === 'scenes' ? ( s.id} numColumns={2} @@ -220,6 +223,7 @@ export function FavoritesScreen() { /> ) : tab === 'movies' ? ( f.movie_id} renderItem={({ item }) => ( @@ -258,6 +262,7 @@ export function FavoritesScreen() { /> ) : tab === 'performers' ? ( f.performer_id} renderItem={({ item }) => ( @@ -303,6 +308,7 @@ export function FavoritesScreen() { /> ) : ( f.studio_id} renderItem={({ item }) => (