kaneo (minimalist kanban) fork to experiment adding a tangled integration github.com/usekaneo/kaneo
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 14 lines 414 B view raw
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;