docs({react,solid}-query): add missing 'errorUpdateCount' to 'useQuery' return signature#11041
Merged
sukvvon merged 4 commits intoJul 12, 2026
Conversation
Contributor
📝 WalkthroughWalkthroughThe React and Solid ChangesuseQuery documentation
Estimated code review effort: 1 (Trivial) | ~2 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
|
View your CI Pipeline Execution ↗ for commit 514fcea
☁️ Nx Cloud last updated this comment at |
… preserve alphabetical order
sukvvon
approved these changes
Jul 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
errorUpdateCountis fully documented in the Returns section of theuseQueryreference 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.mddocs/framework/solid/reference/useQuery.mdThe top-of-page destructuring block is ordered alphabetically, so
errorUpdateCountis inserted right beforeerrorUpdatedAt(errorUpdateC…<errorUpdatedA…):error, + errorUpdateCount, errorUpdatedAt, failureCount,The Returns section below follows the field-definition order from
packages/query-core/src/types.tsinstead, whereerrorUpdateCountis already listed afterfailureReason— that section is left unchanged.How did you test this change?
Documentation-only change — no runtime behavior affected, no tests needed. Verified by:
errorUpdateCountis already present in the Returns section of both files, and was only absent from the destructuring block.errorUpdateCountbelongs beforeerrorUpdatedAt.Summary by CodeRabbit
useQuerydocumentation examples to destructure and displayerrorUpdateCountfrom the hook’s return value.