Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

328 B
Raw Blame
import { useCoreState } from '../providers/CoreStateProvider';

/**
 * Hook to access the current core-owned user snapshot.
 */
export const useUser = () => {
  const { isBootstrapping, snapshot, refresh } = useCoreState();

  return { user: snapshot.currentUser, isLoading: isBootstrapping, error: null, refetch: refresh };
};