From 484c4acc28c2746ededdef4f04029a6226a71b1c Mon Sep 17 00:00:00 2001 From: Zac Rosenbauer Date: Tue, 22 Apr 2025 17:25:32 -0400 Subject: [PATCH] docs: fix broken links in docs --- docs/framework/react/guides/advanced-ssr.md | 4 ++-- docs/framework/react/guides/mutations.md | 2 +- docs/framework/react/guides/prefetching.md | 2 +- docs/framework/react/guides/suspense.md | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/framework/react/guides/advanced-ssr.md b/docs/framework/react/guides/advanced-ssr.md index 2d15ef59873..d3e5be7f9c8 100644 --- a/docs/framework/react/guides/advanced-ssr.md +++ b/docs/framework/react/guides/advanced-ssr.md @@ -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 @@ -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. diff --git a/docs/framework/react/guides/mutations.md b/docs/framework/react/guides/mutations.md index c5c947275ad..655d44f28d6 100644 --- a/docs/framework/react/guides/mutations.md +++ b/docs/framework/react/guides/mutations.md @@ -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 diff --git a/docs/framework/react/guides/prefetching.md b/docs/framework/react/guides/prefetching.md index fab1a2f6838..d1a9c131695 100644 --- a/docs/framework/react/guides/prefetching.md +++ b/docs/framework/react/guides/prefetching.md @@ -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' diff --git a/docs/framework/react/guides/suspense.md b/docs/framework/react/guides/suspense.md index a7ed7e4eae2..37215b9e4d3 100644 --- a/docs/framework/react/guides/suspense.md +++ b/docs/framework/react/guides/suspense.md @@ -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. @@ -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)