Skip to content

perf: prevent the prefetch cross all links and calculate user staleness from updated_at and env var - #287

Merged
O2sa merged 2 commits into
mainfrom
perf/link-prefetch-and-user-stale
Dec 1, 2026
Merged

O2sa merged 2 commits into
mainfrom
perf/link-prefetch-and-user-stale

Conversation

@O2sa

@O2sa O2sa commented Dec 1, 2026

Copy link
Copy Markdown
Owner

No description provided.

O2sa added 2 commits December 1, 2026 16:51
- Add shared Link wrapper in src/components/ui/link.tsx with prefetch={false} default
- Update all app components to use the shared Link wrapper
- Add unit tests for default and overridden prefetch behavior
- Add shared stale calculation helpers reading GITHUB_USER_STALE_DAYS
- Evaluate DB freshness in getUserData, getUserProfile, and getTopStaleUsers using updated_at
- Update refreshStaleUsers to evaluate updated_at against staleDays
- Add unit tests covering GITHUB_USER_STALE_DAYS and updated_at
@O2sa
O2sa merged commit a9cff11 into main Dec 1, 2026
5 of 6 checks passed
@O2sa

O2sa commented Dec 1, 2026

Copy link
Copy Markdown
Owner Author

✨ Thank you, @O2sa! Another great contribution merged! 🚀

You've been a fantastic contributor! We truly appreciate your continued support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant