Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

565 B
Raw Blame
import { useQuery } from "@tanstack/react-query";
import reviewSyncResume from "@/fetchers/integration-sync/review-sync-resume";
import type { SyncParams } from "@/fetchers/integration-sync/types";

export function useResumePreview(
  param: SyncParams,
  linkId: string,
  taskId: string,
) {
  return useQuery({
    queryKey: [
      "integration-sync-review",
      param.projectId,
      param.provider,
      linkId,
    ],
    queryFn: ({ signal }) => reviewSyncResume(param, linkId, signal),
    meta: { taskId },
    retry: false,
    staleTime: 0,
  });
}