OpenLake/OpenLake--Website

Refactor: Replace Static GitHub Stats with Dynamic Data

Open

#7 aperta il 20 apr 2025

Vedi su GitHub
 (1 commento) (0 reazioni) (1 assegnatario)JavaScript (12 fork)auto 404
DevLabsenhancementhelp wanted

Metriche repository

Star
 (2 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

Issue

Currently, the GitHub statistics displayed are hardcoded and do not reflect real-time data. We need to replace these static values with dynamic stats by creating a reusable hook.

Task

  • Create a custom hook useStats to fetch and return live GitHub stats.
  • Replace the existing static values with data from the hook.
  • Ensure fallback values or error handling is in place if the API fails.

Reference

Image

Guida contributor