diff --git a/mobile/app/index.tsx b/mobile/app/index.tsx index 3486fd441..489a20c6a 100644 --- a/mobile/app/index.tsx +++ b/mobile/app/index.tsx @@ -305,12 +305,12 @@ export default function HomeScreen() { if (hosts.length > 0) primeHosts(hosts) }, [hosts, primeHosts]) const allClientsRef = useRef>([]) - useEffect(() => { - allClientsRef.current = allClients.map((entry) => ({ - hostId: entry.hostId, - client: entry.client - })) - }, [allClients]) + // Why: the focus callback stays stable to avoid refetching on every + // client-store render, but it still needs the latest host clients. + allClientsRef.current = allClients.map((entry) => ({ + hostId: entry.hostId, + client: entry.client + })) // Why: hydrate the home page from a persisted snapshot on cold-start so // Resume + Account-usage cards paint immediately with last-known data