Skip to content

Commit 952e7d4

Browse files
committed
Link to decision doc from changelog
1 parent e979fca commit 952e7d4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,8 @@ const redirects: Route.unstable_MiddlewareFunction = async ({
467467
};
468468
```
469469

470+
For more information on the `middleware` API/design, please see the [decision doc](https://github.com/remix-run/react-router/blob/release-next/decisions/0014-context-middleware.md).
471+
470472
##### Middleware `context` parameter
471473

472474
When middleware is enabled, your application will use a different type of `context` parameter in your loaders and actions to provide better type safety. Instead of `AppLoadContext`, `context` will now be an instance of `ContextProvider` that you can use with type-safe contexts (similar to `React.createContext`):

0 commit comments

Comments
 (0)