⚡ 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 startImportRun, {
type StartImportRunRequest,
} from "@/fetchers/import/start-import-run";
function useStartImportRun() {
const queryClient = useQueryClient();
return useMutation({
mutationFn: (data: StartImportRunRequest) => startImportRun(data),
gcTime: 0,
onSuccess: ({ run }) => {
queryClient.setQueryData(["import-run", run.workspaceId, run.id], {
run,
});
queryClient.invalidateQueries({
queryKey: ["import-runs", run.workspaceId],
});
},
});
}
export default useStartImportRun;