fix(feed): the count pill dims while a new search's count loads

keepPreviousData held the last filter's count, and a broad word's count
takes seconds: the pill showed the old number as the new search's. It now
dims and is aria-busy until the new count lands, as AdminLogs does.
This commit is contained in:
2026-10-03 01:01:46 +02:00
parent e0e28c006c
commit c74ceb73e3
4 changed files with 116 additions and 4 deletions
+1 -1
View File
@@ -710,7 +710,7 @@ export default function Feed({
<div className="flex items-center gap-1.5 gap-y-2 flex-wrap">
{/* The item count is the fixed leading element — a fixed-width pill so a changing number
never shoves the controls beside it (see ItemCount). */}
<ItemCount count={summaryQuery.data?.count} />
<ItemCount count={summaryQuery.data?.count} stale={summaryQuery.isPlaceholderData} />
<FilterFoldButton
fold={fold}
label={t("sidebar.filters")}