Conversation
…nding but only refetching the stale query when one query has fresh and the other has stale cached data
|
View your CI Pipeline Execution ↗ for commit 219ffcb
☁️ Nx Cloud last updated this comment at |
🚀 Changeset Version PreviewNo changeset entries found. Merging this PR will not cause a version bump for any packages. |
size-limit report 📦
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThis PR adds identical test cases to both react-query and preact-query test suites that verify Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
🎯 Changes
Add test for the mixed cache state (fresh + stale) scenario in
useSuspenseQueries. Verifies that when one query has fresh cached data and the other has stale cached data:✅ Checklist
pnpm run test:pr.🚀 Release Impact
Summary by CodeRabbit
useSuspenseQueriesto verify correct behavior when queries have different freshness states at mount, ensuring stale queries refresh in the background without affecting fresh queries.