Skip to content

Commit 8fd0e0c

Browse files
committed
Simpler fix
1 parent 88ae476 commit 8fd0e0c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3557,7 +3557,7 @@ export function createStaticHandler(
35573557
skipLoaderErrorBubbling,
35583558
skipRevalidation,
35593559
dataStrategy,
3560-
generateMiddlewareResponse: generateMiddlewareResponse,
3560+
generateMiddlewareResponse,
35613561
}: Parameters<StaticHandler["query"]>[1] = {},
35623562
): Promise<StaticHandlerContext | Response> {
35633563
let url = new URL(request.url);
@@ -3667,7 +3667,7 @@ export function createStaticHandler(
36673667
null,
36683668
"filterMatchesToLoad" in opts
36693669
? (opts.filterMatchesToLoad ?? null)
3670-
: null,
3670+
: (filterMatchesToLoad ?? null),
36713671
skipRevalidation === true,
36723672
);
36733673

@@ -3831,7 +3831,7 @@ export function createStaticHandler(
38313831
routeId,
38323832
requestContext,
38333833
dataStrategy,
3834-
generateMiddlewareResponse: generateMiddlewareResponse,
3834+
generateMiddlewareResponse,
38353835
}: Parameters<StaticHandler["queryRoute"]>[1] = {},
38363836
): Promise<any> {
38373837
let url = new URL(request.url);

0 commit comments

Comments
 (0)