feat(query-core): improve useInfiniteQuery error handling
Fixes #7412
- Add
isFetchNextPageErrorandisFetchPreviousPageError. - Update
isRefetchErrorto be consistent withisRefetching. - Update docs and type definitions for
useInfiniteQuery. - Add unit tests.
Related #4465
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| query | ⬜️ Ignored (Inspect) | Visit Preview | May 12, 2024 1:52pm |
This pull request is automatically built and testable in CodeSandbox.
To see build info of the built libraries, click here or the icon next to each commit SHA.
Latest deployment of this branch, based on commit d9a2c6df5feb3807da970dc54b916609f705ef3a:
| Sandbox | Source |
|---|---|
| @tanstack/query-example-angular-basic | Configuration |
| @tanstack/query-example-react-basic-typescript | Configuration |
| @tanstack/query-example-solid-basic-typescript | Configuration |
| @tanstack/query-example-svelte-basic | Configuration |
| @tanstack/query-example-vue-basic | Configuration |
☁️ Nx Cloud Report
CI is running/has finished running commands for commit d9a2c6df5feb3807da970dc54b916609f705ef3a. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.
📂 See all runs for this CI Pipeline Execution
✅ Successfully ran 1 target
Sent with 💌 from NxCloud.
Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 41.22%. Comparing base (
93674fe) to head (d9a2c6d). Report is 135 commits behind head on main.
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@ Coverage Diff @@
## main #7418 +/- ##
==========================================
- Coverage 41.42% 41.22% -0.21%
==========================================
Files 184 182 -2
Lines 7331 7413 +82
Branches 1531 1558 +27
==========================================
+ Hits 3037 3056 +19
- Misses 3889 3945 +56
- Partials 405 412 +7