Skip to content

Commit fe25edc

Browse files
pavan-shTkDodo
andauthored
docs(react): fix broken anchors in SSR and migration guides (#10214)
* docs(react): fix broken anchors in SSR and migration guides * Update docs/framework/react/guides/ssr.md --------- Co-authored-by: Dominik Dorfmeister 🔮 <office@dorfmeister.cc>
1 parent 8a59b2d commit fe25edc

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

docs/framework/react/guides/migrating-to-react-query-4.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ Due to this change, disabled queries (even temporarily disabled ones) will start
121121
isInitialLoading // [!code ++]
122122
```
123123

124-
See also the guide on [disabling queries](./disabling-queries.md#isInitialLoading)
124+
See also the guide on [disabling queries](./disabling-queries.md#isloading-previously-isinitialloading)
125125

126126
### new API for `useQueries`
127127

@@ -296,7 +296,7 @@ Since these plugins are no longer experimental, their import paths have also bee
296296
297297
### The `cancel` method on promises is no longer supported
298298
299-
The [old `cancel` method](./query-cancellation.md#old-cancel-function) that allowed you to define a `cancel` function on promises, which was then used by the library to support query cancellation, has been removed. We recommend to use the [newer API](./query-cancellation.md) (introduced with v3.30.0) for query cancellation that uses the [`AbortController` API](https://developer.mozilla.org/en-US/docs/Web/API/AbortController) internally and provides you with an [`AbortSignal` instance](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) for your query function to support query cancellation.
299+
The old `cancel` method (which allowed you to define a `cancel` function on promises and was used by the library to support query cancellation) has been removed. We recommend using the [newer API](./query-cancellation.md) (introduced with v3.30.0) for query cancellation, which uses the [`AbortController` API](https://developer.mozilla.org/en-US/docs/Web/API/AbortController) internally and provides you with an [`AbortSignal` instance](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) in your query function to support query cancellation.
300300
301301
### TypeScript
302302

docs/framework/react/guides/ssr.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ In this guide you'll learn how to use React Query with server rendering.
77

88
See the guide on [Prefetching & Router Integration](./prefetching.md) for some background. You might also want to check out the [Performance & Request Waterfalls guide](./request-waterfalls.md) before that.
99

10+
For deeper examples on hydration + prefetching (including code splitting), see the [Dependent Queries & Code Splitting](./prefetching.md#dependent-queries-code-splitting) section.
11+
1012
For advanced server rendering patterns, such as streaming, Server Components and the new Next.js app router, see the [Advanced Server Rendering guide](./advanced-ssr.md).
1113

1214
If you just want to see some code, you can skip ahead to the [Full Next.js pages router example](#full-nextjs-pages-router-example) or the [Full Remix example](#full-remix-example) below.
@@ -15,7 +17,7 @@ If you just want to see some code, you can skip ahead to the [Full Next.js pages
1517

1618
So what is server rendering anyway? The rest of this guide will assume you are familiar with the concept, but let's spend some time to look at how it relates to React Query. Server rendering is the act of generating the initial html on the server, so that the user has some content to look at as soon as the page loads. This can happen on demand when a page is requested (SSR). It can also happen ahead of time either because a previous request was cached, or at build time (SSG).
1719

18-
If you've read the Request Waterfalls guide, you might remember this:
20+
If you've read the [Performance & Request Waterfalls guide](./request-waterfalls.md), you might remember this:
1921

2022
```
2123
1. |-> Markup (without content)
@@ -386,7 +388,7 @@ With Remix, this is a little bit more involved, we recommend checking out the [u
386388

387389
## Prefetching dependent queries
388390

389-
Over in the Prefetching guide we learned how to [prefetch dependent queries](./prefetching.md#dependent-queries--code-splitting), but how do we do this in framework loaders? Consider the following code, taken from the [Dependent Queries guide](./dependent-queries.md):
391+
Over in the Prefetching guide we learned how to [prefetch dependent queries](./prefetching.md#dependent-queries-code-splitting), but how do we do this in framework loaders? Consider the following code, taken from the [Dependent Queries guide](./dependent-queries.md):
390392

391393
```tsx
392394
// Get the user

0 commit comments

Comments
 (0)