kaneo (minimalist kanban) fork to experiment adding a tangled integration
github.com/usekaneo/kaneo
1import { useMutation } from "@tanstack/react-query";
2import importGithubIssues from "@/fetchers/github-integration/import-github-issues";
3import queryClient from "@/query-client";
4
5function useImportGithubIssues() {
6 return useMutation({
7 mutationFn: importGithubIssues,
8 onSuccess: () => {
9 queryClient.invalidateQueries({ queryKey: ["tasks"] });
10 },
11 });
12}
13
14export default useImportGithubIssues;