add new genre list

This commit is contained in:
jeffvli
2025-11-13 21:45:09 -08:00
parent 72f20ddd11
commit 4f1d39d3c4
14 changed files with 642 additions and 469 deletions
+13
View File
@@ -159,6 +159,19 @@ export const queryKeys: Record<
root: (serverId: string) => [serverId, 'artists'] as const,
},
genres: {
count: (serverId: string, query?: GenreListQuery) => {
const { filter, pagination } = splitPaginatedQuery(query);
if (query && pagination) {
return [serverId, 'genres', 'count', filter, pagination] as const;
}
if (query) {
return [serverId, 'genres', 'count', filter] as const;
}
return [serverId, 'genres', 'count'] as const;
},
list: (serverId: string, query?: GenreListQuery) => {
const { filter, pagination } = splitPaginatedQuery(query);
if (query && pagination) {