MCPcopy Create free account
hub / github.com/Codehagen/Badget / fetchStats

Function fetchStats

src/components/github-stats.tsx:12–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10
11 useEffect(() => {
12 async function fetchStats() {
13 try {
14 const githubStats = await getGitHubStats();
15 setStats(githubStats);
16 } catch (error) {
17 console.error("Failed to fetch GitHub stats:", error);
18 } finally {
19 setLoading(false);
20 }
21 }
22
23 fetchStats();
24 }, []);

Callers 1

GitHubStatsSectionFunction · 0.85

Calls 1

getGitHubStatsFunction · 0.90

Tested by

no test coverage detected