From fea6845ad74178b529e5b5611ba7293b773a81b5 Mon Sep 17 00:00:00 2001 From: Aaron Nelson Date: Sun, 26 Apr 2026 22:35:09 -0400 Subject: [PATCH] =?UTF-8?q?Fix=20conversation=20hydration=20=E2=80=94=20cl?= =?UTF-8?q?ear=20stale=20state=20before=20fresh=20fetch=20on=20mount?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/page.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/page.tsx b/app/page.tsx index 830b464..72fa34a 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -59,6 +59,8 @@ export default function Home() { document.documentElement.setAttribute('data-theme', s.theme || 'light'); document.documentElement.setAttribute('data-font', s.font_size || 'medium'); }).catch(console.error); + // Clear stale persisted conversations then fetch fresh + setConversations([]); api.getConversations().then(setConversations).catch(console.error); }, []);