Invalidate playlist song list on update (#248)

This commit is contained in:
Kendall Garner 2023-09-20 23:28:59 +00:00 committed by GitHub
parent d9049ed066
commit 487e9be8ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,
});