Skip to content

docs({react,solid}-query): add missing 'errorUpdateCount' to 'useQuery' return signature#11041

Merged
sukvvon merged 4 commits into
TanStack:mainfrom
KangaZero:docs/add-error-update-count-to-use-query-signature
Jul 12, 2026
Merged

docs({react,solid}-query): add missing 'errorUpdateCount' to 'useQuery' return signature#11041
sukvvon merged 4 commits into
TanStack:mainfrom
KangaZero:docs/add-error-update-count-to-use-query-signature

Conversation

@KangaZero

@KangaZero KangaZero commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Summary

errorUpdateCount is fully documented in the Returns section of the useQuery reference pages but was missing from the top-of-page destructuring block — the first thing a reader sees when scanning the API.

Affected files:

  • docs/framework/react/reference/useQuery.md
  • docs/framework/solid/reference/useQuery.md

The top-of-page destructuring block is ordered alphabetically, so errorUpdateCount is inserted right before errorUpdatedAt (errorUpdateC… < errorUpdatedA…):

  error,
+ errorUpdateCount,
  errorUpdatedAt,
  failureCount,

The Returns section below follows the field-definition order from packages/query-core/src/types.ts instead, where errorUpdateCount is already listed after failureReason — that section is left unchanged.

How did you test this change?

Documentation-only change — no runtime behavior affected, no tests needed. Verified by:

  1. Confirming errorUpdateCount is already present in the Returns section of both files, and was only absent from the destructuring block.
  2. Confirming the destructuring blocks in both files are alphabetically ordered, so errorUpdateCount belongs before errorUpdatedAt.

Summary by CodeRabbit

  • Documentation
    • Updated the React and Solid useQuery documentation examples to destructure and display errorUpdateCount from the hook’s return value.

@coderabbitai

coderabbitai Bot commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

The React and Solid useQuery reference examples now include errorUpdateCount among the destructured return values.

Changes

useQuery documentation

Layer / File(s) Summary
Document returned query state
docs/framework/react/reference/useQuery.md, docs/framework/solid/reference/useQuery.md
The React and Solid useQuery examples now destructure errorUpdateCount from the hook result.

Estimated code review effort: 1 (Trivial) | ~2 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title clearly matches the docs-only change to add errorUpdateCount to useQuery return examples for React and Solid.
Description check ✅ Passed The description explains the change and testing, but it omits the template's Checklist and Release Impact sections.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@nx-cloud

nx-cloud Bot commented Jul 12, 2026

Copy link
Copy Markdown

View your CI Pipeline Execution ↗ for commit 514fcea

Command Status Duration Result
nx run-many --target=build --exclude=examples/*... ✅ Succeeded <1s View ↗
nx affected --targets=test:sherif,test:knip,tes... ✅ Succeeded 46s View ↗

☁️ Nx Cloud last updated this comment at 2026-07-12 18:24:59 UTC

@sukvvon sukvvon changed the title docs(react-query): add missing errorUpdateCount to useQuery return signature docs({react,solid}-query): add missing 'errorUpdateCount' to 'useQuery' return signature Jul 12, 2026
@pkg-pr-new

pkg-pr-new Bot commented Jul 12, 2026

Copy link
Copy Markdown
More templates

@tanstack/angular-query-experimental

npm i https://pkg.pr.new/@tanstack/angular-query-experimental@11041

@tanstack/eslint-plugin-query

npm i https://pkg.pr.new/@tanstack/eslint-plugin-query@11041

@tanstack/lit-query

npm i https://pkg.pr.new/@tanstack/lit-query@11041

@tanstack/preact-query

npm i https://pkg.pr.new/@tanstack/preact-query@11041

@tanstack/preact-query-devtools

npm i https://pkg.pr.new/@tanstack/preact-query-devtools@11041

@tanstack/preact-query-persist-client

npm i https://pkg.pr.new/@tanstack/preact-query-persist-client@11041

@tanstack/query-async-storage-persister

npm i https://pkg.pr.new/@tanstack/query-async-storage-persister@11041

@tanstack/query-broadcast-client-experimental

npm i https://pkg.pr.new/@tanstack/query-broadcast-client-experimental@11041

@tanstack/query-core

npm i https://pkg.pr.new/@tanstack/query-core@11041

@tanstack/query-devtools

npm i https://pkg.pr.new/@tanstack/query-devtools@11041

@tanstack/query-persist-client-core

npm i https://pkg.pr.new/@tanstack/query-persist-client-core@11041

@tanstack/query-sync-storage-persister

npm i https://pkg.pr.new/@tanstack/query-sync-storage-persister@11041

@tanstack/react-query

npm i https://pkg.pr.new/@tanstack/react-query@11041

@tanstack/react-query-devtools

npm i https://pkg.pr.new/@tanstack/react-query-devtools@11041

@tanstack/react-query-next-experimental

npm i https://pkg.pr.new/@tanstack/react-query-next-experimental@11041

@tanstack/react-query-persist-client

npm i https://pkg.pr.new/@tanstack/react-query-persist-client@11041

@tanstack/solid-query

npm i https://pkg.pr.new/@tanstack/solid-query@11041

@tanstack/solid-query-devtools

npm i https://pkg.pr.new/@tanstack/solid-query-devtools@11041

@tanstack/solid-query-persist-client

npm i https://pkg.pr.new/@tanstack/solid-query-persist-client@11041

@tanstack/svelte-query

npm i https://pkg.pr.new/@tanstack/svelte-query@11041

@tanstack/svelte-query-devtools

npm i https://pkg.pr.new/@tanstack/svelte-query-devtools@11041

@tanstack/svelte-query-persist-client

npm i https://pkg.pr.new/@tanstack/svelte-query-persist-client@11041

@tanstack/vue-query

npm i https://pkg.pr.new/@tanstack/vue-query@11041

@tanstack/vue-query-devtools

npm i https://pkg.pr.new/@tanstack/vue-query-devtools@11041

commit: dce1ba3

@sukvvon sukvvon merged commit f6cf120 into TanStack:main Jul 12, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants