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 |
More templates
@tanstack/angular-query-experimental
@tanstack/eslint-plugin-query
@tanstack/preact-query
@tanstack/query-async-storage-persister
@tanstack/query-broadcast-client-experimental
@tanstack/query-core
@tanstack/query-devtools
@tanstack/query-persist-client-core
@tanstack/query-sync-storage-persister
@tanstack/react-query
@tanstack/react-query-devtools
@tanstack/react-query-next-experimental
@tanstack/react-query-persist-client
@tanstack/solid-query
@tanstack/solid-query-devtools
@tanstack/solid-query-persist-client
@tanstack/svelte-query
@tanstack/svelte-query-devtools
@tanstack/svelte-query-persist-client
@tanstack/vue-query
@tanstack/vue-query-devtools
commit: |
🎯 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