feat(web): adminRequests cache key + staleTime polish

- qk.adminRequests defaults to status='all' when no filter is set; the unfiltered
  endpoint returns every status, so caching it as 'pending' was a latent mismatch.
- 60s staleTime on lidarrConfig + myRequests — both are session-stable enough
  that refetching on every consumer-page mount produced needless flicker.
This commit is contained in:
2026-04-29 20:04:51 -04:00
parent d7eaa189e2
commit ce7424219c
4 changed files with 10 additions and 5 deletions
+2 -1
View File
@@ -72,7 +72,8 @@ export async function rejectRequest(
export function createLidarrConfigQuery() {
return createQuery({
queryKey: qk.lidarrConfig(),
queryFn: getLidarrConfig
queryFn: getLidarrConfig,
staleTime: 60_000
});
}