From e185e03c6cfb2ad407cce9db42c0ce2aa0a7dbba Mon Sep 17 00:00:00 2001 From: npeter83 Date: Tue, 30 Jun 2026 04:17:49 +0200 Subject: [PATCH] fix(channel): show the Exploring badge on first visit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refetch the channel detail after the auto-explore ingest so `explored` flips true and the "Exploring" badge appears immediately — the GET that drove the first render predated the explore that just created the ExploredChannel row. --- frontend/src/components/ChannelPage.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/components/ChannelPage.tsx b/frontend/src/components/ChannelPage.tsx index fef3c01..baa1448 100644 --- a/frontend/src/components/ChannelPage.tsx +++ b/frontend/src/components/ChannelPage.tsx @@ -53,6 +53,9 @@ export default function ChannelPage({ .then((r) => { setNextToken(r.next_page_token); qc.invalidateQueries({ queryKey: ["feed"] }); + // Refetch the detail so `explored` flips true → the "Exploring" badge shows on the + // first visit (the GET that drove this render predated the explore that just ran). + qc.invalidateQueries({ queryKey: ["channel", channelId] }); }) .finally(() => setExploring(false)); },