Skip to content

Commit f9d7ed6

Browse files
committed
Fix server future plumbing
1 parent 56b2944 commit f9d7ed6

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

.changeset/lemon-rivers-battle.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"react-router-dom": patch
3+
---
4+
5+
[Remove] Fix server future plumbing

packages/react-router-dom/server.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,6 @@ export function StaticRouterProvider({
114114
static: true,
115115
staticContext: context,
116116
basename: context.basename || "/",
117-
future: {
118-
v7_relativeSplatPath: router.future.v7_relativeSplatPath,
119-
},
120117
};
121118

122119
let fetchersContext = new Map();
@@ -151,6 +148,9 @@ export function StaticRouterProvider({
151148
navigationType={state.historyAction}
152149
navigator={dataRouterContext.navigator}
153150
static={dataRouterContext.static}
151+
future={{
152+
v7_relativeSplatPath: router.future.v7_relativeSplatPath,
153+
}}
154154
>
155155
<DataRoutes
156156
routes={router.routes}

0 commit comments

Comments
 (0)