test(lit-query/createQueriesController): add test for not processing detached updates when disconnected while in-flight - #11771
Conversation
…detached updates when disconnected while in-flight
|
View your CI Pipeline Execution ↗ for commit 5b4091c
☁️ 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 (1)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughThe change adds a regression test for an in-flight query that completes after its host disconnects. The test checks that completion does not increase the host’s ChangesLit query update handling
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~8 minutes Change: Other Merge Risk: ⚪ Minimal · up to The regression test checks that query completion after host removal requests no additional updates. Production behavior is unchanged, and the change is mergeable subject to normal test checks. 🚥 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
createQueriesController.test.ts. The host is removed while its query is still fetching. After the fetch settles, the removed host must 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