Skip to content

Commit 323b7d8

Browse files
authored
fix typo (#13185)
* fix typo * cla
1 parent d47993c commit 323b7d8

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,7 @@ function unstable_getContext() {
391391

392392
#### Middleware (unstable)
393393

394-
Middleware is implemented behind a `future.unstable_middleware` flag. To enable, you must enable the flag and the types in your `react-router-config.ts` file:
394+
Middleware is implemented behind a `future.unstable_middleware` flag. To enable, you must enable the flag and the types in your `react-router.config.ts` file:
395395

396396
```ts
397397
import type { Config } from "@react-router/dev/config";

contributors.yml

+1
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@
265265
- pwdcd
266266
- pyitphyoaung
267267
- refusado
268+
- renyu-io
268269
- reyronald
269270
- rifaidev
270271
- rimian

packages/react-router/lib/router/router.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3487,7 +3487,7 @@ export function createStaticHandler(
34873487
invariant(
34883488
requestContext instanceof unstable_RouterContextProvider,
34893489
"When using middleware in `staticHandler.query()`, any provided " +
3490-
"`requestContext` must bean instance of `unstable_RouterContextProvider`"
3490+
"`requestContext` must be an instance of `unstable_RouterContextProvider`"
34913491
);
34923492
try {
34933493
let renderedStaticContext: StaticHandlerContext | undefined;

0 commit comments

Comments
 (0)