We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7451578 commit cb68eb0Copy full SHA for cb68eb0
frontend/src/mutations/notifications.ts
@@ -8,7 +8,7 @@ import type { EnrichedNotification } from "@/dto/notifications";
8
export const useDeleteNotificationMutation = defineMutation(() => {
9
const queryCache = useQueryCache();
10
11
- const { mutatee, ...mutation } = useMutation({
+ const { mutate, ...mutation } = useMutation({
12
mutation: (id: string) => deleteMyNotification(id),
13
onMutate: (id: string) => {
14
// optimistic: remove the notification from the "notifications" query
0 commit comments