Skip to content

Commit b040fc9

Browse files
committed
Remove future flag usage
1 parent dbbc3e1 commit b040fc9

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

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

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2794,8 +2794,7 @@ export function createRouter(init: RouterInit): Router {
27942794
fetcherKey,
27952795
manifest,
27962796
mapRouteProperties,
2797-
scopedContext,
2798-
future.unstable_middleware
2797+
scopedContext
27992798
);
28002799
} catch (e) {
28012800
// If the outer dataStrategy method throws, just return the error for all
@@ -4163,8 +4162,7 @@ export function createStaticHandler(
41634162
null,
41644163
manifest,
41654164
mapRouteProperties,
4166-
requestContext,
4167-
false // middleware not done via dataStrategy in the static handler
4165+
requestContext
41684166
);
41694167

41704168
let dataResults: Record<string, DataResult> = {};
@@ -5155,8 +5153,7 @@ async function callDataStrategyImpl(
51555153
fetcherKey: string | null,
51565154
manifest: RouteManifest,
51575155
mapRouteProperties: MapRoutePropertiesFunction,
5158-
scopedContext: unknown,
5159-
enableMiddleware: boolean // TODO: Remove this
5156+
scopedContext: unknown
51605157
): Promise<Record<string, DataStrategyResult>> {
51615158
// Ensure all lazy/lazyMiddleware async functions are kicked off in parallel
51625159
// before we await them where needed below

0 commit comments

Comments
 (0)