query icon indicating copy to clipboard operation
query copied to clipboard

feat(query-core): improve useInfiniteQuery error handling

Open jasongerbes opened this issue 1 year ago • 2 comments

Fixes #7412

  • Add isFetchNextPageError and isFetchPreviousPageError.
  • Update isRefetchError to be consistent with isRefetching.
  • Update docs and type definitions for useInfiniteQuery.
  • Add unit tests.

Related #4465

jasongerbes avatar May 12 '24 05:05 jasongerbes

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

vercel[bot] avatar May 12 '24 05:05 vercel[bot]

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

codesandbox-ci[bot] avatar May 12 '24 05:05 codesandbox-ci[bot]

☁️ 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.

nx-cloud[bot] avatar May 12 '24 13:05 nx-cloud[bot]

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

Impacted file tree graph

@@            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     
Components Coverage Δ
@tanstack/angular-query-devtools-experimental ∅ <ø> (∅)
@tanstack/angular-query-experimental 86.69% <87.50%> (+0.23%) :arrow_up:
@tanstack/eslint-plugin-query 85.46% <100.00%> (+0.17%) :arrow_up:
@tanstack/query-async-storage-persister 43.85% <100.00%> (-5.35%) :arrow_down:
@tanstack/query-broadcast-client-experimental ∅ <ø> (∅)
@tanstack/query-codemods 0.00% <0.00%> (ø)
@tanstack/query-core 92.96% <93.19%> (-0.30%) :arrow_down:
@tanstack/query-devtools 3.92% <0.00%> (-0.02%) :arrow_down:
@tanstack/query-persist-client-core 57.73% <ø> (ø)
@tanstack/query-sync-storage-persister 82.50% <ø> (ø)
@tanstack/react-query 92.77% <ø> (ø)
@tanstack/react-query-devtools 10.71% <ø> (ø)
@tanstack/react-query-next-experimental ∅ <ø> (∅)
@tanstack/react-query-persist-client 100.00% <ø> (ø)
@tanstack/solid-query 77.74% <ø> (-4.53%) :arrow_down:
@tanstack/solid-query-devtools ∅ <ø> (∅)
@tanstack/solid-query-persist-client 100.00% <ø> (ø)
@tanstack/svelte-query 62.68% <ø> (ø)
@tanstack/svelte-query-devtools ∅ <ø> (∅)
@tanstack/svelte-query-persist-client 100.00% <ø> (ø)
@tanstack/vue-query 71.04% <ø> (+0.23%) :arrow_up:
@tanstack/vue-query-devtools ∅ <ø> (∅)

codecov-commenter avatar May 12 '24 13:05 codecov-commenter