mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-14 04:20:07 +02:00
refactor search into individual sections by itemtype, add infinite loader
This commit is contained in:
@@ -347,6 +347,11 @@ export const queryKeys: Record<
|
||||
list: (serverId: string) => [serverId, 'roles'] as const,
|
||||
},
|
||||
search: {
|
||||
infiniteList: (
|
||||
serverId: string,
|
||||
type: 'albumArtists' | 'albums' | 'songs',
|
||||
searchTerm: string,
|
||||
) => [serverId, 'search', 'infiniteList', type, searchTerm] as const,
|
||||
list: (serverId: string, query?: SearchQuery) => {
|
||||
if (query) return [serverId, 'search', 'list', query] as const;
|
||||
return [serverId, 'search', 'list'] as const;
|
||||
|
||||
Reference in New Issue
Block a user