Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

587 B
Raw Blame
import { queryOptions, useQuery } from '@tanstack/solid-query';
import { getMacroGithubStars } from '../service-clients/service-github-public/client';

const githubStarsQueryOptions = queryOptions({
  queryKey: ['public', 'github', 'macro-inc/macro', 'stars'],
  queryFn: ({ signal }) => getMacroGithubStars(signal),
  staleTime: 60 * 60 * 1000,
  gcTime: 24 * 60 * 60 * 1000,
  retry: 1,
  throwOnError: false,
});

/** Shared across onboarding mounts; this public request needs no sign-in. */
export function useGithubStarsQuery() {
  return useQuery(() => githubStarsQueryOptions);
}