fix: query invalidation on page remove

This commit is contained in:
Lars Hampe 2024-10-24 22:21:27 +02:00
parent 0951d06607
commit 91ea79d9d7

View File

@ -74,7 +74,10 @@ export const usePageDelete = () => {
}),
onSuccess: (data) => {
queryClient.invalidateQueries({
queryKey: ['pageList', 'pageById', data.id],
queryKey: ['pageList'],
})
queryClient.invalidateQueries({
queryKey: ['pageById', data.id],
})
},
})