Skip to content

Commit d10c7ef

Browse files
authored
Update missed type for clientMiddleware (#14212)
1 parent 1915a1a commit d10c7ef

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.changeset/old-peas-fetch.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"react-router": patch
3+
---
4+
5+
[REMOVE] Update type as a follow up to https://github.com/remix-run/react-router/pull/14151

packages/react-router/lib/dom/ssr/routeModules.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import type {
88
unstable_MiddlewareFunction,
99
Params,
1010
ShouldRevalidateFunction,
11+
DataStrategyResult,
1112
} from "../../router/utils";
1213

1314
import type { EntryRoute } from "./routes";
@@ -25,7 +26,9 @@ export interface RouteModules {
2526
export interface RouteModule {
2627
clientAction?: ClientActionFunction;
2728
clientLoader?: ClientLoaderFunction;
28-
unstable_clientMiddleware?: unstable_MiddlewareFunction<undefined>[];
29+
unstable_clientMiddleware?: unstable_MiddlewareFunction<
30+
Record<string, DataStrategyResult>
31+
>[];
2932
ErrorBoundary?: ErrorBoundaryComponent;
3033
HydrateFallback?: HydrateFallbackComponent;
3134
Layout?: LayoutComponent;

0 commit comments

Comments
 (0)