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:
@@ -27,7 +27,7 @@ export const qk = {
|
||||
lidarrQualityProfiles: () => ['lidarrQualityProfiles'] as const,
|
||||
lidarrRootFolders: () => ['lidarrRootFolders'] as const,
|
||||
adminRequests: (status?: string) =>
|
||||
['adminRequests', { status: status ?? 'pending' }] as const,
|
||||
['adminRequests', { status: status ?? 'all' }] as const,
|
||||
};
|
||||
|
||||
export function createArtistsQuery(sort: ArtistSort) {
|
||||
|
||||
Reference in New Issue
Block a user