(path: string, params?: Record<string, any>)
| 2 | import { useModified } from '../useModified'; |
| 3 | |
| 4 | export function useDeleteQuery(path: string, params?: Record<string, any>) { |
| 5 | const { del, useMutation } = useApi(); |
| 6 | const query = useMutation({ |
| 7 | mutationFn: () => del(path, params), |
| 8 | }); |
| 9 | const { touch } = useModified(); |
| 10 | |
| 11 | return { ...query, touch }; |
| 12 | } |
no test coverage detected