Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

346 B
Raw Blame
import { useApi } from '../useApi';
import { useModified } from '../useModified';

export function useDeleteQuery(path: string, params?: Record<string, any>) {
  const { del, useMutation } = useApi();
  const query = useMutation({
    mutationFn: () => del(path, params),
  });
  const { touch } = useModified();

  return { ...query, touch };
}