mirror of
https://github.com/jeffvli/feishin.git
synced 2024-11-20 06:27:09 +01:00
Invalidate playlist song list on update (#248)
This commit is contained in:
parent
d9049ed066
commit
487e9be8ec
@ -31,6 +31,9 @@ export const useAddToPlaylist = (args: MutationHookArgs) => {
|
||||
queryClient.invalidateQueries(
|
||||
queryKeys.playlists.detailSongList(serverId, variables.query.id),
|
||||
);
|
||||
queryClient.invalidateQueries(
|
||||
queryKeys.playlists.songList(serverId, variables.query.id),
|
||||
);
|
||||
},
|
||||
...options,
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user