MCPcopy
hub / github.com/umami-software/umami / useDeleteQuery

Function useDeleteQuery

src/components/hooks/queries/useDeleteQuery.ts:4–12  ·  view source on GitHub ↗
(path: string, params?: Record<string, any>)

Source from the content-addressed store, hash-verified

2import { useModified } from '../useModified';
3
4export 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}

Callers 13

ReportEditButtonFunction · 0.90
PixelDeleteButtonFunction · 0.90
CohortDeleteButtonFunction · 0.90
WebsiteDeleteFormFunction · 0.90
ShareDeleteButtonFunction · 0.90
SegmentDeleteButtonFunction · 0.90
LinkDeleteButtonFunction · 0.90
BoardDeleteButtonFunction · 0.90
TeamLeaveFormFunction · 0.90
TeamDeleteFormFunction · 0.90
TeamWebsiteRemoveButtonFunction · 0.90
TeamMemberRemoveButtonFunction · 0.90

Calls 2

useApiFunction · 0.90
useModifiedFunction · 0.90

Tested by

no test coverage detected