mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-26 15:48:32 -06:00
delete item experience
This commit is contained in:
@@ -261,11 +261,11 @@ export const useDeleteItemMutation = <T extends CourseItemType>(type: T) => {
|
||||
await axiosClient.delete(url);
|
||||
},
|
||||
onSuccess: async (_, { moduleName, itemName }) => {
|
||||
queryClient.invalidateQueries({
|
||||
await queryClient.invalidateQueries({
|
||||
queryKey: localCourseKeys.allItemsOfType(courseName, moduleName, type),
|
||||
// refetchType: "all",
|
||||
});
|
||||
queryClient.invalidateQueries({
|
||||
await queryClient.invalidateQueries({
|
||||
queryKey: localCourseKeys.itemOfType(
|
||||
courseName,
|
||||
moduleName,
|
||||
|
||||
Reference in New Issue
Block a user