Skip to content

Commit

Permalink
Fix server future plumbing
Browse files Browse the repository at this point in the history
  • Loading branch information
brophdawg11 committed Dec 5, 2023
1 parent 56b2944 commit f9d7ed6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/lemon-rivers-battle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"react-router-dom": patch
---

[Remove] Fix server future plumbing
6 changes: 3 additions & 3 deletions packages/react-router-dom/server.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,6 @@ export function StaticRouterProvider({
static: true,
staticContext: context,
basename: context.basename || "/",
future: {
v7_relativeSplatPath: router.future.v7_relativeSplatPath,
},
};

let fetchersContext = new Map();
Expand Down Expand Up @@ -151,6 +148,9 @@ export function StaticRouterProvider({
navigationType={state.historyAction}
navigator={dataRouterContext.navigator}
static={dataRouterContext.static}
future={{
v7_relativeSplatPath: router.future.v7_relativeSplatPath,
}}
>
<DataRoutes
routes={router.routes}
Expand Down

0 comments on commit f9d7ed6

Please sign in to comment.