From fc2210a174bf14ba773453a3ba86a83cfc89b855 Mon Sep 17 00:00:00 2001 From: Wonsuk Choi Date: Wed, 12 Aug 2026 10:13:28 +0900 Subject: [PATCH 1/2] docs(solid-query/useQuery): document 'throwOnError' default value --- docs/framework/solid/reference/useQuery.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/framework/solid/reference/useQuery.md b/docs/framework/solid/reference/useQuery.md index aaca4469971..0fa96efae2f 100644 --- a/docs/framework/solid/reference/useQuery.md +++ b/docs/framework/solid/reference/useQuery.md @@ -291,6 +291,8 @@ function App() { - The time in milliseconds after data is considered stale. This value only applies to the hook it is defined on. - If set to `Infinity`, the data will never be considered stale - ##### `throwOnError: undefined | boolean | (error: TError, query: Query) => boolean` + - Optional + - Defaults to `false` - Set this to `true` if you want errors to be thrown in the render phase and propagate to the nearest error boundary - Set this to `false` to disable `suspense`'s default behavior of throwing errors to the error boundary. - If set to a function, it will be passed the error and the query, and it should return a boolean indicating whether to show the error in an error boundary (`true`) or return the error as state (`false`) From 4e3b235e42b25d4a39ad7f019c974203875a6c5d Mon Sep 17 00:00:00 2001 From: Wonsuk Choi Date: Wed, 12 Aug 2026 10:39:16 +0900 Subject: [PATCH 2/2] docs(solid-query/useQuery): document SSR and 'suspense' exceptions to 'throwOnError' default --- docs/framework/solid/reference/useQuery.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/framework/solid/reference/useQuery.md b/docs/framework/solid/reference/useQuery.md index 0fa96efae2f..3e3378cb3e9 100644 --- a/docs/framework/solid/reference/useQuery.md +++ b/docs/framework/solid/reference/useQuery.md @@ -293,6 +293,8 @@ function App() { - ##### `throwOnError: undefined | boolean | (error: TError, query: Query) => boolean` - Optional - Defaults to `false` + - During SSR, defaults to `true` + - If the deprecated `suspense` option is set to `true`, defaults to `true` - Set this to `true` if you want errors to be thrown in the render phase and propagate to the nearest error boundary - Set this to `false` to disable `suspense`'s default behavior of throwing errors to the error boundary. - If set to a function, it will be passed the error and the query, and it should return a boolean indicating whether to show the error in an error boundary (`true`) or return the error as state (`false`)