You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/src/pages/docs/api.md
+58-6Lines changed: 58 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,11 +59,11 @@ const queryInfo = useQuery({
59
59
60
60
**Options**
61
61
62
-
- `queryKey:String|[String, ...any] | falsy`
62
+
- `queryKey:String| any[]`
63
63
- **Required**
64
64
- The query key to use for this query.
65
65
- If a string is passed, it will be used as the query key.
66
-
- If a `[String, ...any]` array is passed, each item will be serialized into a stable query key. See [Query Keys](./guides/queries#query-keys) for more information.
66
+
- If an array is passed, each item will be serialized into a stable query key. See [Query Keys](./guides/queries#query-keys) for more information.
67
67
- The query will automatically update when this key changes (as long as `enabled` is not set to `false`).
- This function allows you to fetch the next "page" of results.
256
255
- `fetchMoreVariableOverride` allows you to optionally override the fetch more variable returned from your `getFetchMore` option to your query function to retrieve the next page of results.
257
256
- `canFetchMore:Boolean`
@@ -787,6 +786,59 @@ function App() {
787
786
- In instance of queryCache, you can use the `makeQueryCache` factory to create this.
788
787
- If not provided, a new cache will be generated.
789
788
789
+
## `ReactQueryErrorResetBoundary`
790
+
791
+
When using **suspense** or **useErrorBoundaries** in your queries, you need a way to let queries know that you want to try again when re-rendering after some error occured. With the `ReactQueryErrorResetBoundary` component you can reset any query errors within the boundaries of the component.
`setConsole` is an optional utility function that allows you to replace the `console` interface used to log errors. By default, the `window.console` object is used. If no global `console` object is found in the environment, nothing will be logged.
0 commit comments