()
| 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 | }, []); |
no test coverage detected