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(
|
queryClient.invalidateQueries(
|
||||||
queryKeys.playlists.detailSongList(serverId, variables.query.id),
|
queryKeys.playlists.detailSongList(serverId, variables.query.id),
|
||||||
);
|
);
|
||||||
|
queryClient.invalidateQueries(
|
||||||
|
queryKeys.playlists.songList(serverId, variables.query.id),
|
||||||
|
);
|
||||||
},
|
},
|
||||||
...options,
|
...options,
|
||||||
});
|
});
|
||||||
|
|
Reference in a new issue