kaneo (minimalist kanban) fork to experiment adding a tangled integration github.com/usekaneo/kaneo
at main 12 lines 390 B view raw
1import { useQuery } from "@tanstack/react-query"; 2import getGithubIntegration from "@/fetchers/github-integration/get-github-integration"; 3 4function useGetGithubIntegration(projectId: string) { 5 return useQuery({ 6 queryKey: ["github-integration", projectId], 7 queryFn: () => getGithubIntegration(projectId), 8 enabled: !!projectId, 9 }); 10} 11 12export default useGetGithubIntegration;