MCPcopy Create free account
hub / github.com/scopecraft/command / useCreateTask

Function useCreateTask

tasks-ui/src/lib/api/hooks.ts:49–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47}
48
49export function useCreateTask() {
50 const queryClient = useQueryClient();
51
52 return useMutation({
53 mutationFn: apiClient.createTask,
54 onSuccess: () => {
55 // Invalidate all task queries
56 queryClient.invalidateQueries({ queryKey: ['tasks'] });
57 queryClient.invalidateQueries({ queryKey: ['parents'] });
58 },
59 });
60}
61
62export function useUpdateTask() {
63 const queryClient = useQueryClient();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…