mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-03 09:38:54 +00:00
fix(client): work through the findings from the coverage pass
214 items came out of writing the tests. Real defects are corrected, dead code is removed rather than covered, and the tests that pinned the old behaviour move with them. Also drops two agent coverage scratch files that slipped into the coverage PR and adds the ignore rule that keeps them out.
This commit is contained in:
@@ -74,6 +74,11 @@ export function usePoiExplore() {
|
||||
if (abortRef.current[key] === ctrl) {
|
||||
setLoading(key, false)
|
||||
delete abortRef.current[key]
|
||||
} else if (!abortRef.current[key]) {
|
||||
// Cancelled with nothing taking over (toggle switched the category, or
|
||||
// turned it off) — no later request will clear this key, so do it here
|
||||
// instead of leaving the pill spinning forever.
|
||||
setLoading(key, false)
|
||||
}
|
||||
}
|
||||
}, [setLoading, setError, locale])
|
||||
|
||||
Reference in New Issue
Block a user