MCPcopy Create free account
hub / github.com/astercloud/aster / useDeleteBenchmark

Function useDeleteBenchmark

studio/src/hooks/useApi.ts:316–325  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

314}
315
316export function useDeleteBenchmark() {
317 const queryClient = useQueryClient();
318
319 return useMutation({
320 mutationFn: (id: string) => api.deleteBenchmark(id),
321 onSuccess: () => {
322 queryClient.invalidateQueries({ queryKey: queryKeys.benchmarks });
323 },
324 });
325}

Callers 1

BenchmarksFunction · 0.90

Calls 1

deleteBenchmarkMethod · 0.45

Tested by

no test coverage detected