From 487e9be8eca8987355d01d39af4fa51d4998bf80 Mon Sep 17 00:00:00 2001 From: Kendall Garner <17521368+kgarner7@users.noreply.github.com> Date: Wed, 20 Sep 2023 23:28:59 +0000 Subject: [PATCH] Invalidate playlist song list on update (#248) --- .../features/playlists/mutations/add-to-playlist-mutation.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/renderer/features/playlists/mutations/add-to-playlist-mutation.ts b/src/renderer/features/playlists/mutations/add-to-playlist-mutation.ts index 3f1b5eb48..01086dee8 100644 --- a/src/renderer/features/playlists/mutations/add-to-playlist-mutation.ts +++ b/src/renderer/features/playlists/mutations/add-to-playlist-mutation.ts @@ -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, });