MCPcopy Create free account
hub / github.com/simstudioai/sim / useGitHubStars

Function useGitHubStars

apps/sim/hooks/queries/github-stars.ts:33–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31 * on mount, so consumers never need a fallback or undefined check.
32 */
33export function useGitHubStars() {
34 return useQuery({
35 queryKey: githubStarsKeys.count(),
36 queryFn: ({ signal }) => fetchGitHubStars(signal),
37 staleTime: 60 * 60 * 1000,
38 initialData: GITHUB_STARS_FALLBACK,
39 initialDataUpdatedAt: 0,
40 })
41}

Callers 1

ChatClientFunction · 0.90

Calls 1

fetchGitHubStarsFunction · 0.85

Tested by

no test coverage detected