Skip to content

Refresh personal competitions while showing cached results - #100

Open
coder13 wants to merge 1 commit into
mainfrom
codex/refresh-home-personal-competitions
Open

coder13 wants to merge 1 commit into
mainfrom
codex/refresh-home-personal-competitions

Conversation

@coder13

@coder13 coder13 commented Nov 7, 2026

Copy link
Copy Markdown
Owner

A signed-in home-page reload could restore a recently cached empty personal-competitions result and skip the API request, incorrectly leaving “No competitions found” visible.

Always refresh personal competitions when the query mounts, including on home-page reloads and return visits. Keep cached competitions visible while fetching, show the loading bar during cache restoration and refreshes, and defer the empty state until refreshing finishes.

Regression tests cover restoring both empty and populated fresh caches, keeping cached data visible during a delayed request, and refetching on a return visit within the five-minute freshness window.

Validation:

  • yarn check:type
  • yarn lint (no errors; three existing warnings in unrelated files)
  • yarn test --runInBand (62 suites, 416 tests, and 2 snapshots passed)

The existing Main PR Guard permits only beta as the source branch for PRs into main, so it will flag this direct fix PR. No guard or deployment configuration is changed.

@netlify

netlify Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for competition-groups ready!

Name Link
🔨 Latest commit fa15eb5
🔍 Latest deploy log https://app.netlify.com/projects/competition-groups/deploys/6aef717aac43d707a684c3cf
😎 Deploy Preview https://deploy-preview-100--competition-groups.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 67
Accessibility: 93
Best Practices: 100
SEO: 96
PWA: 90
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

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