Closed xingwanying closed 2 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
petercat | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Sep 12, 2024 2:51pm |
This PR refactors the way GitHub stars are fetched and displayed by moving the fetching logic to a server component. This change ensures that the star count is always up-to-date and simplifies the client-side code.
File | Summary |
---|---|
client/app/page.tsx | Refactored to remove client-side fetching of GitHub stars and utilize the new GitHubStars component. |
client/components/GitHubStars.tsx | New component to fetch and display GitHub stars on the server side. |
client/components/LangSwitcher.tsx | Minor adjustment to language options formatting. |
Fetch Data in a Server Component