add queue fetcher cancellation and loading state

This commit is contained in:
jeffvli
2025-11-07 17:52:12 -08:00
parent 0cfa07bfbc
commit b4558491e7
2 changed files with 102 additions and 12 deletions
+5
View File
@@ -176,6 +176,11 @@ export const queryKeys: Record<
musicFolders: {
list: (serverId: string) => [serverId, 'musicFolders', 'list'] as const,
},
player: {
fetch: () => {
return ['player', 'fetch'] as const;
},
},
playlists: {
detail: (serverId: string, id?: string, query?: PlaylistDetailQuery) => {
const { filter, pagination } = splitPaginatedQuery(query);