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.

382 B
Raw Blame
import type { QueryClient } from "@tanstack/react-query";
import { tasksQueryOptions } from "./tasks-query-options";

export function prefetchBoard(queryClient: QueryClient, projectId: string) {
  const options = tasksQueryOptions(queryClient, projectId);
  if (queryClient.getQueryState(options.queryKey)?.data !== undefined) return;
  return queryClient.prefetchQuery(options);
}