New goals page. Upgraded prisma.
This commit is contained in:
1 parent
99330a1a4d
commit
49bcbfd7f9
65 files changed
+769
-1195
No files matched your search
@@ -0,0 +1,11 @@
|
||||
import { useApi, useModified } from '@/components/hooks';
|
||||
|
||||
export function useDeleteQuery(path: string, params?: { [key: string]: any }) {
|
||||
const { del, useMutation } = useApi();
|
||||
const { mutate, isPending, error } = useMutation({
|
||||
mutationFn: () => del(path, params),
|
||||
});
|
||||
const { touch } = useModified();
|
||||
|
||||
return { mutate, isPending, error, touch };
|
||||
}
|
||||
Reference in new issue
Block a user