Keep STALE on Contacts while a poll is in flight

A poll that returned the same stale snapshot dropped STALE from the
Contacts cohort until the next answer, because the in-flight loading flag
outranked stale and the source revision ignored the provider name. A
source that has answered now reads its status without the loading flag;
one that has never answered (AIS first connect) still reads as loading,
so it shows no STALE before any snapshot exists.
This commit is contained in:
German Khokhlov committed 2026-11-04 16:34:39 +04:00
1 parent 490c8d1769
commit 99831ea19b
5 files changed
+167 -5

No files matched your search

+1
View File
@@ -91,6 +91,7 @@ export function createQueries({ state: layerState, services, parts, source }) {
stats.count ?? null,
stats.status || null,
stats.error || null,
stats.source || null,
];
})
.map((parts) => parts.join(':'))