test(lit-query/{useIsFetching,useIsMutating}): add tests for not processing cache updates while disconnected - #11772
Conversation
…essing cache updates while disconnected
|
View your CI Pipeline Execution ↗ for commit b0ec3be
☁️ 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. |
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: TanStack/query/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (2)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review. 📝 WalkthroughWalkthroughThe pull request adds tests for ChangesDisconnected host update tests
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Other Merge Risk: ⚪ Minimal · up to This test-only change adds coverage for disconnected hosts receiving no further updates during query and mutation activity. No actionable merge-blocking risk is identified; merge after normal checks pass. 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 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 |
size-limit report 📦
|
🎯 Changes
Adds a test to
useIsFetching.test.tsanduseIsMutating.test.ts. AHostcounting throughuseIsFetching/useIsMutatingis connected and then removed. Afterwards, aProducerfetches a query or runs a mutation. The removedHostmust not request another update, which it counts through arequestUpdateoverride.✅ Checklist
pnpm run test:pr, or these tests do not apply to this pull request.🚀 Release Impact
Summary by CodeRabbit