mirror of
https://github.com/antebudimir/feishin.git
synced 2025-12-31 18:13:31 +00:00
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,
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue