Skip to content

Commit d5fd30f

Browse files
Christopher96uChristopher Menendez
andauthored
docs(router): update URL for Query (#4849)
Co-authored-by: Christopher Menendez <[email protected]>
1 parent cb0478a commit d5fd30f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/router/framework/react/guide/deferred-data-loading.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ TanStack Router is designed to run loaders in parallel and wait for all of them
77

88
Deferred data loading is a pattern that allows the router to render the next location's critical data/markup while slower, non-critical route data is resolved in the background. This process works on both the client and server (via streaming) and is a great way to improve the perceived performance of your application.
99

10-
If you are using a library like [TanStack Query](https://react-query.tanstack.com) or any other data fetching library, then deferred data loading works a bit differently. Skip ahead to the [Deferred Data Loading with External Libraries](#deferred-data-loading-with-external-libraries) section for more information.
10+
If you are using a library like [TanStack Query](https://tanstack.com/query/latest) or any other data fetching library, then deferred data loading works a bit differently. Skip ahead to the [Deferred Data Loading with External Libraries](#deferred-data-loading-with-external-libraries) section for more information.
1111

1212
## Deferred Data Loading with `Await`
1313

docs/router/framework/react/guide/external-data-loading.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export const Route = createFileRoute('/posts')({
102102

103103
### Error handling with TanStack Query
104104

105-
When an error occurs while using `suspense` with `Tanstack Query`, you'll need to let queries know that you want to try again when re-rendering. This can be done by using the `reset` function provided by the `useQueryErrorResetBoundary` hook. We can invoke this function in an effect as soon as the error component mounts. This will make sure that the query is reset and will try to fetch data again when the route component is rendered again. This will also cover cases where users navigate away from our route instead of clicking the `retry` button.
105+
When an error occurs while using `suspense` with `TanStack Query`, you'll need to let queries know that you want to try again when re-rendering. This can be done by using the `reset` function provided by the `useQueryErrorResetBoundary` hook. We can invoke this function in an effect as soon as the error component mounts. This will make sure that the query is reset and will try to fetch data again when the route component is rendered again. This will also cover cases where users navigate away from our route instead of clicking the `retry` button.
106106

107107
```tsx
108108
export const Route = createFileRoute('/')({

0 commit comments

Comments
 (0)