Skip to content

docs(react-query/useQuery): document 'throwOnError' default value - #11156

Merged
sukvvon merged 3 commits into
mainfrom
docs/document-throwonerror-default
Aug 12, 2026
Merged

docs(react-query/useQuery): document 'throwOnError' default value#11156
sukvvon merged 3 commits into
mainfrom
docs/document-throwonerror-default

Conversation

@sukvvon

@sukvvonsukvvon commented Aug 9, 2026

Copy link
Copy Markdown
Member

Summary

  • Add Optional / Defaults to false`` to the throwOnError option, matching the documentation pattern used by other options (`subscribed`, `refetchOnMount`, `refetchOnWindowFocus`)

@coderabbitai

coderabbitaiBot commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: f421203f-2cd7-43aa-af9e-f1b9f1eb5abf

📥 Commits

Reviewing files that changed from the base of the PR and between 4005b63 and f1a4093.

📒 Files selected for processing (1)
  • docs/framework/react/reference/useQuery.md
💤 Files with no reviewable changes (1)
  • docs/framework/react/reference/useQuery.md

📝 Walkthrough

Walkthrough

The useQuery reference now documents that throwOnError is optional and defaults to false. Its behavior descriptions remain unchanged.

Changes

React query documentation

Layer / File(s)Summary
Clarify throwOnError options
docs/framework/react/reference/useQuery.md
Documents throwOnError as optional with a default value of false.

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

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check nameStatusExplanationResolution
Description check⚠️ WarningThe description explains the documentation change but omits the required Changes, Checklist, and Release Impact sections from the template.Use the repository template and complete the Changes, Checklist, and Release Impact sections, including the docs-only release checkbox.
✅ Passed checks (4 passed)
Check nameStatusExplanation
Docstring Coverage✅ PassedNo functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check✅ PassedCheck skipped because no linked issues were found for this pull request.
Out of Scope Changes check✅ PassedCheck skipped because no linked issues were found for this pull request.
Title check✅ PassedThe title clearly identifies the React Query documentation change for the throwOnError default value.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/document-throwonerror-default

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-cloudBot commented Aug 9, 2026

Copy link
Copy Markdown

View your CI Pipeline Execution ↗ for commit 4005b63

CommandStatusDurationResult
nx affected --targets=test:sherif,test:knip,tes...✅ Succeeded5m 9sView ↗
nx run-many --target=build --exclude=examples/*...✅ Succeeded<1sView ↗

☁️ Nx Cloud last updated this comment at 2026-08-12 01:00:09 UTC

@github-actions

Copy link
Copy Markdown
Contributor

🚀 Changeset Version Preview

No changeset entries found. Merging this PR will not cause a version bump for any packages.

@pkg-pr-new

pkg-pr-newBot commented Aug 9, 2026

Copy link
Copy Markdown
More templates

@tanstack/angular-query-experimental

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

@tanstack/eslint-plugin-query

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

@tanstack/lit-query

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

@tanstack/preact-query

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

@tanstack/preact-query-devtools

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

@tanstack/preact-query-persist-client

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

@tanstack/query-async-storage-persister

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

@tanstack/query-broadcast-client-experimental

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

@tanstack/query-core

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

@tanstack/query-devtools

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

@tanstack/query-persist-client-core

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

@tanstack/query-sync-storage-persister

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

@tanstack/react-query

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

@tanstack/react-query-devtools

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

@tanstack/react-query-next-experimental

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

@tanstack/react-query-persist-client

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

@tanstack/solid-query

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

@tanstack/solid-query-devtools

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

@tanstack/solid-query-persist-client

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

@tanstack/svelte-query

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

@tanstack/svelte-query-devtools

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

@tanstack/svelte-query-persist-client

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

@tanstack/vue-query

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

@tanstack/vue-query-devtools

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

commit: f1a4093

@github-actions

Copy link
Copy Markdown
Contributor

size-limit report 📦

PathSize
react full12.15 KB (0%)
react minimal9.1 KB (0%)

@sukvvonsukvvon self-assigned this Aug 11, 2026
@sukvvonsukvvon changed the title docs(react-query/useQuery): document 'throwOnError' default and its absence in suspense hooksdocs(react-query/useQuery): document 'throwOnError' default valueAug 12, 2026
@sukvvon
sukvvon merged commit 159982c into mainAug 12, 2026
9 checks passed
@sukvvon
sukvvon deleted the docs/document-throwonerror-default branch August 12, 2026 01:03
Sign up for freeto 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.

1 participant

@sukvvon