PR #84

4 votes · 4 up · 0 down

View on GitHub
4
Total Votes
+4
Upvotes
-0
Downvotes
+4-0

Comments(1)

openchaos-bot[bot]Comment#84Add auto-refresh for PR data

🤖 OpenChaos Bot

Summary: This PR introduces an AutoRefreshWrapper component that automatically refreshes the PR list every 5 minutes (or a configurable interval) using router.refresh(). It also pauses refreshing when the browser tab is hidden to save resources and resumes when the tab becomes visible again.

Files changed: 2 (src/app/page.tsx, src/components/AutoRefreshWrapper.tsx)

Impact: Medium - Improves user experience by automatically updating the PR list, and optimizes resource usage by pausing refreshes when the tab is inactive.


openchaos-bot

All Activity(6)

openchaos-bot[bot]Comment#84Add auto-refresh for PR data

🤖 OpenChaos Bot

Summary: This PR introduces an AutoRefreshWrapper component that automatically refreshes the PR list every 5 minutes (or a configurable interval) using router.refresh(). It also pauses refreshing when the browser tab is hidden to save resources and resumes when the tab becomes visible again.

Files changed: 2 (src/app/page.tsx, src/components/AutoRefreshWrapper.tsx)

Impact: Medium - Improves user experience by automatically updating the PR list, and optimizes resource usage by pausing refreshes when the tab is inactive.


openchaos-bot

robpcPR opened#84

Add auto-refresh for PR data

Adds automatic refresh for the PR list every 5 minutes. The refresh pauses when the tab is hidden and immediately refreshes when you switch back to the tab.

This matches the server-side cache time (5 minutes) to avoid unnecessary API calls.