Skip to content

Commit bb81a9a

Browse files
committed
Fix error message typo
1 parent 5bb1154 commit bb81a9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
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;
@@ -3682,7 +3682,7 @@ export function createStaticHandler(
36823682
invariant(
36833683
requestContext instanceof unstable_RouterContextProvider,
36843684
"When using middleware in `staticHandler.queryRoute()`, any provided " +
3685-
"`requestContext` must bean instance of `unstable_RouterContextProvider`"
3685+
"`requestContext` must be an instance of `unstable_RouterContextProvider`"
36863686
);
36873687
let response = await runMiddlewarePipeline(
36883688
{

0 commit comments

Comments
 (0)