⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.
TypeScript honoissue-managementissue-trackerjira-alternativekanbanlinear-alternativemcpproject-managementreactself-hostedtypescript
import { useMutation, useQueryClient } from "@tanstack/react-query";
import updateColumn from "@/fetchers/column/update-column";
export function useUpdateColumn() {
const queryClient = useQueryClient();
return useMutation({
mutationFn: ({
id,
data,
}: {
id: string;
projectId: string;
data: {
name?: string;
icon?: string | null;
color?: string | null;
isFinal?: boolean;
};
}) => updateColumn(id, data),
onSuccess: async (_, variables) => {
await Promise.all([
queryClient.invalidateQueries({
queryKey: ["columns", variables.projectId],
refetchType: "all",
}),
queryClient.invalidateQueries({
queryKey: ["tasks", variables.projectId],
refetchType: "all",
}),
]);
},
});
}