Skip to content

Commit 90308e1

Browse files
docs(useQuery): add the useErrorBoundary option (TanStack#2084)
1 parent eac52f6 commit 90308e1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/src/pages/reference/useQuery.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,9 @@ const result = useQuery({
168168
- Optional
169169
- Defaults to `true`
170170
- If set to `false`, structural sharing between query results will be disabled.
171+
- `useErrorBoundary: boolean`
172+
- Defaults to the global query config's `useErrorBoundary` value, which is false
173+
- Set this to true if you want errors to be thrown in the render phase and propagated to the nearest error boundary
171174
172175
**Returns**
173176

0 commit comments

Comments
 (0)