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
- This function allows you to fetch the next "page" of results.
258
261
- `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.
259
262
- `canFetchMore:Boolean`
@@ -391,7 +394,7 @@ try {
391
394
392
395
**Returns**
393
396
394
-
- `Promise<TResult>`
397
+
- `Promise<TData>`
395
398
396
399
## `queryCache.prefetchQuery`
397
400
@@ -436,7 +439,7 @@ The options for `prefetchQuery` are exactly the same as those of [`useQuery`](#u
436
439
437
440
**Returns**
438
441
439
-
- `Promise<TResult|undefined>`
442
+
- `Promise<TData|undefined>`
440
443
- A promise is returned that will either immediately resolve with the query's cached response data, or resolve to the data returned by the fetch function. It **will not** throw an error if the fetch fails. This can be configured by setting the `throwOnError` option to `true`.
441
444
442
445
## `queryCache.getQueryData`
@@ -837,16 +840,16 @@ function App() {
837
840
-`queryCache: QueryCache`
838
841
- Instance of QueryCache.
839
842
840
-
## `ReactQueryErrorResetBoundary`
843
+
## `QueryErrorResetBoundary`
841
844
842
-
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.
845
+
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 `QueryErrorResetBoundary` component you can reset any query errors within the boundaries of the component.
Copy file name to clipboardExpand all lines: docs/src/pages/docs/guides/suspense.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,16 +47,16 @@ In addition to queries behaving differently in suspense mode, mutations also beh
47
47
48
48
Whether you are using **suspense** or **useErrorBoundaries** in your queries, you will need a way to let queries know that you want to try again when re-rendering after some error occured.
49
49
50
-
Query errors can be reset with the `ReactQueryErrorResetBoundary` component or with the `useErrorResetBoundary` hook.
50
+
Query errors can be reset with the `QueryErrorResetBoundary` component or with the `useErrorResetBoundary` hook.
51
51
52
52
When using the component it will reset any query errors within the boundaries of the component:
When using the hook it will reset any query errors within the closest `ReactQueryErrorResetBoundary`. If there is no boundary defined it will reset them globally:
77
+
When using the hook it will reset any query errors within the closest `QueryErrorResetBoundary`. If there is no boundary defined it will reset them globally:
0 commit comments