Skip to content
Open
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/how-to/error-reporting.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion docs/how-to/middleware.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/upgrading/v7.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down