Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/framework/react/guides/advanced-ssr.md
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ export default function Posts() {

Now, your `getPosts` function can return e.g. `Temporal` datetime objects and the data will be serialized and deserialized on the client, assuming your transformer can serialize and deserialize those data types.

For more information, check out the [Next.js App with Prefetching Example](../examples/react/nextjs-app-prefetching).
For more information, check out the [Next.js App with Prefetching Example](../examples/nextjs-app-prefetching).

## Experimental streaming without prefetching in Next.js

Expand Down Expand Up @@ -597,7 +597,7 @@ export function Providers(props: { children: React.ReactNode }) {
}
```

For more information, check out the [NextJs Suspense Streaming Example](../examples/react/nextjs-suspense-streaming).
For more information, check out the [NextJs Suspense Streaming Example](../examples/nextjs-suspense-streaming).

The big upside is that you no longer need to prefetch queries manually to have SSR work, and it even still streams in the result! This gives you phenomenal DX and lower code complexity.

Expand Down
2 changes: 1 addition & 1 deletion docs/framework/react/guides/mutations.md
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ export default function App() {

[//]: # 'Example11'

We also have an extensive [offline example](../examples/react/offline) that covers both queries and mutations.
We also have an extensive [offline example](../examples/offline) that covers both queries and mutations.

## Mutation Scopes

Expand Down
2 changes: 1 addition & 1 deletion docs/framework/react/guides/prefetching.md
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ const articleRoute = new Route({
})
```

Integration with other routers is also possible, see the [React Router example](../examples/react/react-router) for another demonstration.
Integration with other routers is also possible, see the [React Router example](../examples/react-router) for another demonstration.

[//]: # 'Router'

Expand Down
4 changes: 2 additions & 2 deletions docs/framework/react/guides/suspense.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ React Query can also be used with React's Suspense for Data Fetching APIs. For t
- [useSuspenseQueries](../reference/useSuspenseQueries.md)
- Additionally, you can use the `useQuery().promise` and `React.use()` (Experimental)

When using suspense mode, `status` states and `error` objects are not needed and are then replaced by usage of the `React.Suspense` component (including the use of the `fallback` prop and React error boundaries for catching errors). Please read the [Resetting Error Boundaries](#resetting-error-boundaries) and look at the [Suspense Example](../examples/react/suspense) for more information on how to set up suspense mode.
When using suspense mode, `status` states and `error` objects are not needed and are then replaced by usage of the `React.Suspense` component (including the use of the `fallback` prop and React error boundaries for catching errors). Please read the [Resetting Error Boundaries](#resetting-error-boundaries) and look at the [Suspense Example](../examples/suspense) for more information on how to set up suspense mode.

If you want mutations to propagate errors to the nearest error boundary (similar to queries), you can set the `throwOnError` option to `true` as well.

Expand Down Expand Up @@ -172,7 +172,7 @@ export function Providers(props: { children: React.ReactNode }) {
}
```

For more information, check out the [NextJs Suspense Streaming Example](../examples/react/nextjs-suspense-streaming) and the [Advanced Rendering & Hydration](./advanced-ssr.md) guide.
For more information, check out the [NextJs Suspense Streaming Example](../examples/nextjs-suspense-streaming) and the [Advanced Rendering & Hydration](./advanced-ssr.md) guide.

## Using `useQuery().promise` and `React.use()` (Experimental)

Expand Down