test(solid-query/useQuery): add test for 'isRestoring' transition from true to false triggering refetch#10168
Conversation
…m true to false triggering refetch
|
|
No actionable comments were generated in the recent review. 🎉 📝 WalkthroughWalkthroughA new Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 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 8e8b776
☁️ Nx Cloud last updated this comment at |
🎯 Changes
Add a test to cover the
isRestoringsignal transition (true→false) triggering a refetch inuseBaseQuery.ts(lines 338-339).The test verifies that:
isRestoringistrue, the query stays inpendingstatus withidlefetchStatus and does not callqueryFnisRestoringtransitions tofalse, the query refetches and resolves tosuccessThis mirrors the behavior of
PersistQueryClientProviderinsolid-query-persist-client(src/PersistQueryClientProvider.tsx:20,33).✅ Checklist
pnpm run test:pr.🚀 Release Impact
Summary by CodeRabbit
New Features
Tests