Invalidate playlist song list on update (#248)
This commit is contained in:
parent
d9049ed066
commit
487e9be8ec
1 changed files with 3 additions and 0 deletions
|
@ -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,
|
||||
});
|
||||
|
|
Reference in a new issue