mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-08 13:00:13 +02:00
add personal/community toggle for artist top songs (#1372)
This commit is contained in:
@@ -41,6 +41,16 @@ export const useSendScrobble = (options?: MutationOptions) => {
|
||||
queryClient.invalidateQueries({
|
||||
queryKey: ['home', 'mostPlayed'],
|
||||
});
|
||||
|
||||
// Invalidate album artist top songs
|
||||
queryClient.invalidateQueries({
|
||||
queryKey: queryKeys.albumArtists.topSongs(serverId),
|
||||
});
|
||||
|
||||
// Invalidate album artist favorite songs
|
||||
queryClient.invalidateQueries({
|
||||
queryKey: queryKeys.albumArtists.favoriteSongs(serverId),
|
||||
});
|
||||
}
|
||||
},
|
||||
...options,
|
||||
|
||||
Reference in New Issue
Block a user