()
| 314 | } |
| 315 | |
| 316 | export 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 | } |
no test coverage detected