From ec97dfcee537f85f5e1683969c6b68d659693bee Mon Sep 17 00:00:00 2001 From: Jack Kingsman Date: Mon, 9 Feb 2026 19:52:41 -0800 Subject: [PATCH] Flush through all contacts with more care to prevent rerenders --- frontend/src/App.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/App.tsx b/frontend/src/App.tsx index 58b18bc..52593f7 100644 --- a/frontend/src/App.tsx +++ b/frontend/src/App.tsx @@ -644,7 +644,7 @@ export function App() { const handleCreateContact = useCallback( async (name: string, publicKey: string, tryHistorical: boolean) => { const created = await api.createContact(publicKey, name || undefined, tryHistorical); - const data = await api.getContacts(); + const data = await fetchAllContacts(); setContacts(data); setActiveConversation({ @@ -653,7 +653,7 @@ export function App() { name: getContactDisplayName(created.name, created.public_key), }); }, - [] + [fetchAllContacts] ); // Create channel handler