docs: explain Chrome focus emulation in window focus refetching guide - #11457
docs: explain Chrome focus emulation in window focus refetching guide#11457chungyo wants to merge 1 commit into
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughAdds troubleshooting guidance for stale queries that do not refetch when Chrome DevTools emulates a focused page. The guide explains the effect on ChangesWindow focus refetching
Priority: ⬇️ Low Estimated code review effort: 1 (Trivial) | ~2 minutes Merge Risk: ⚪ Minimal · up to This adds Chrome DevTools troubleshooting guidance for focus-triggered query refetching without changing runtime behavior, and no merge-blocking risk remains. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
🎯 Changes
When Chrome DevTools has Emulate a focused page enabled, switching away from a tab and returning does not trigger the default window focus refetching behavior. Chrome keeps the page visible and suppresses the
visibilitychangeevents used by TanStack Query.Add a troubleshooting note to the window focus refetching guide that explains this behavior and shows where to disable the setting. The note links to the Chrome DevTools documentation.
Related discussion: #6568
Validation:
scripts/verify-links.tsvia a local bundle: all 1,657 Markdown files passed its relative-link checks.pnpm run test:prsuite and docs-site preview were not run for this prose-only change.✅ Checklist
pnpm run test:pr, or these tests do not apply to this pull request.🚀 Release Impact
Summary by CodeRabbit