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.

344 B
Raw Blame
import { queryOptions, useQuery } from "@tanstack/react-query";
import { getConfig } from "@/fetchers/config/get-config";

export function configQueryOptions() {
  return queryOptions({
    queryKey: ["config"],
    queryFn: getConfig,
  });
}

function useGetConfig() {
  return useQuery(configQueryOptions());
}

export default useGetConfig;