Add related genre albums to album detail

This commit is contained in:
jeffvli 2023-08-08 07:44:33 -07:00
parent 5f5c3bbb11
commit 8338aaf18d
2 changed files with 53 additions and 6 deletions

View file

@ -95,6 +95,13 @@ export const queryKeys: Record<
return [serverId, 'albums', 'list'] as const;
},
related: (serverId: string, id: string, query?: AlbumDetailQuery) => {
if (query) {
return [serverId, 'albums', id, 'related', query] as const;
}
return [serverId, 'albums', id, 'related'] as const;
},
root: (serverId: string) => [serverId, 'albums'],
serverRoot: (serverId: string) => [serverId, 'albums'],
songs: (serverId: string, query: SongListQuery) =>