test(react-query/useQuery): add test for not fetching during restoring period when 'isRestoring' is true#10166
Conversation
…g period when 'isRestoring' is true
|
|
No actionable comments were generated in the recent review. 🎉 📝 WalkthroughWalkthroughA new test case is added to verify that useQuery respects the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes 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 unit tests (beta)
Comment |
|
View your CI Pipeline Execution ↗ for commit 9c52153
☁️ Nx Cloud last updated this comment at |
🎯 Changes
Add a test to cover the
isRestoringbranch inuseBaseQuery.ts(line 78).When
IsRestoringProviderprovidestrue, the query should remain inpendingstatus withfetchStatus: 'idle'and never callqueryFn, even after the query's sleep duration has elapsed.✅ Checklist
pnpm run test:pr.🚀 Release Impact
Summary by CodeRabbit