Converted mutation queries.

This commit is contained in:
Mike Cao committed 2025-08-24 15:20:19 -07:00
1 parent 3f167e05ba
commit 0f9669f886
34 files changed
+259 -350

No files matched your search

@@ -2,10 +2,10 @@ import { useApi, useModified } from '@/components/hooks';
export function useDeleteQuery(path: string, params?: Record<string, any>) {
const { del, useMutation } = useApi();
const { mutate, isPending, error } = useMutation({
const query = useMutation({
mutationFn: () => del(path, params),
});
const { touch } = useModified();
return { mutate, isPending, error, touch };
return { ...query, touch };
}