fix: query invalidation on page remove
This commit is contained in:
parent
0951d06607
commit
91ea79d9d7
@ -74,7 +74,10 @@ export const usePageDelete = () => {
|
|||||||
}),
|
}),
|
||||||
onSuccess: (data) => {
|
onSuccess: (data) => {
|
||||||
queryClient.invalidateQueries({
|
queryClient.invalidateQueries({
|
||||||
queryKey: ['pageList', 'pageById', data.id],
|
queryKey: ['pageList'],
|
||||||
|
})
|
||||||
|
queryClient.invalidateQueries({
|
||||||
|
queryKey: ['pageById', data.id],
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user