mirror of
https://github.com/multica-ai/multica.git
synced 2026-07-28 22:17:48 +02:00
- Merge origin/main (4 commits: search, runtime owner, multi-agent fix) - Migrate new search feature imports to monorepo paths - Move new runtime mutations to packages/core/runtimes/ - Resolve 5 conflicts in layout, runtime components Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
14 lines
416 B
TypeScript
14 lines
416 B
TypeScript
import { useMutation, useQueryClient } from "@tanstack/react-query";
|
|
import { api } from "../api";
|
|
import { runtimeKeys } from "./queries";
|
|
|
|
export function useDeleteRuntime(wsId: string) {
|
|
const qc = useQueryClient();
|
|
return useMutation({
|
|
mutationFn: (runtimeId: string) => api.deleteRuntime(runtimeId),
|
|
onSettled: () => {
|
|
qc.invalidateQueries({ queryKey: runtimeKeys.all(wsId) });
|
|
},
|
|
});
|
|
}
|