From f2bcd9c30070ec8dae771ed94a2acc88d89af18a Mon Sep 17 00:00:00 2001 From: SatvikMishra08 Date: Sat, 10 Oct 2026 21:31:13 +0530 Subject: [PATCH] docs: fix broken links to API anchors and removed middleware sections --- docs/how-to/error-reporting.md | 4 ++-- docs/how-to/middleware.md | 2 +- docs/upgrading/v7.md | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/how-to/error-reporting.md b/docs/how-to/error-reporting.md index 649933e318..8474285e86 100644 --- a/docs/how-to/error-reporting.md +++ b/docs/how-to/error-reporting.md @@ -138,5 +138,5 @@ See also: [entryclient]: ../api/framework-conventions/entry.client.tsx [hydratedrouter]: ../api/framework-routers/HydratedRouter [routerprovider]: ../api/data-routers/RouterProvider -[hydratedrouter-onerror]: ../api/framework-routers/HydratedRouter#onError -[routerprovider-onerror]: ../api/data-routers/RouterProvider#onError +[hydratedrouter-onerror]: ../api/framework-routers/HydratedRouter#onerror +[routerprovider-onerror]: ../api/data-routers/RouterProvider#onerror diff --git a/docs/how-to/middleware.md b/docs/how-to/middleware.md index 93bede059f..f6a7dd6d45 100644 --- a/docs/how-to/middleware.md +++ b/docs/how-to/middleware.md @@ -639,7 +639,7 @@ export async function loader({ [datastrategy]: ../api/data-routers/createBrowserRouter#optsdatastrategy [cms-redirect]: #cms-redirect-on-404 [createContext]: ../api/utils/createContext -[getContext]: ../api/data-routers/createBrowserRouter#optsgetContext +[getContext]: ../api/data-routers/createBrowserRouter#optsgetcontext [request]: https://developer.mozilla.org/en-US/docs/Web/API/Request [data-action]: ../start/data/route-object#action [data-loader]: ../start/data/route-object#loader diff --git a/docs/upgrading/v7.md b/docs/upgrading/v7.md index 4a19366016..9700cd7e4d 100644 --- a/docs/upgrading/v7.md +++ b/docs/upgrading/v7.md @@ -79,7 +79,7 @@ const router = createBrowserRouter(routes, { If you're using the `context` parameter in `loader` and `action` functions, you may need to update your code: -- In Framework mode, if you're using `react-router-serve`, you should not need to make any updates. Otherwise, this only applies if you have a custom server with a `getLoadContext` function. Please see the docs on the middleware [`getLoadContext` changes](../how-to/middleware#changes-to-getloadcontextapploadcontext) and the instructions to [migrate to the new API](../how-to/middleware#migration-from-apploadcontext). +- In Framework mode, if you're using `react-router-serve`, you should not need to make any updates. Otherwise, this only applies if you have a custom server with a `getLoadContext` function. Please see the middleware docs on [returning a `RouterContextProvider` from `getLoadContext`](../how-to/middleware#3-add-a-getloadcontext-function-if-applicable). - In Data mode, add the `Future` module augmentation described in the [middleware docs](../how-to/middleware#1-typescript-augment-future-for-loaderaction-context) so `context` is typed correctly. ### `future.v8_splitRouteModules`