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.

321 B
Raw Blame
import { useRef } from "react";
import { authClient } from "@/lib/auth-client";

export function useSettledSession() {
  const { data, isPending } = authClient.useSession();
  const settled = useRef(false);
  if (!isPending) settled.current = true;
  return { session: data, isLoading: isPending && !settled.current };
}