File tree Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Expand file tree Collapse file tree 4 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -368,10 +368,7 @@ describe("useResolvedPath", () => {
368368 // gh-issue #11629
369369 it ( "'.' resolves to the current path including any splat paths nested in pathless routes" , ( ) => {
370370 let { container } = render (
371- < MemoryRouter
372- initialEntries = { [ "/foo/bar" ] }
373- future = { { v7_relativeSplatPath : true } }
374- >
371+ < MemoryRouter initialEntries = { [ "/foo/bar" ] } >
375372 < Routes >
376373 < Route path = "foo" >
377374 < Route >
Original file line number Diff line number Diff line change 11import type {
2- FutureConfig as RouterFutureConfig ,
2+ FutureConfig ,
33 HydrationState ,
44 InitialEntry ,
55 LazyRouteFunction ,
@@ -127,7 +127,7 @@ export function createMemoryRouter(
127127 routes : RouteObject [ ] ,
128128 opts ?: {
129129 basename ?: string ;
130- future ?: Partial < RouterFutureConfig > ;
130+ future ?: Partial < FutureConfig > ;
131131 hydrationData ?: HydrationState ;
132132 initialEntries ?: InitialEntry [ ] ;
133133 initialIndex ?: number ;
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import type {
1212 unstable_DataStrategyFunction ,
1313 Fetcher ,
1414 FormEncType ,
15- FutureConfig as RouterFutureConfig ,
15+ FutureConfig ,
1616 GetScrollRestorationKeyFunction ,
1717 HashHistory ,
1818 History ,
@@ -128,7 +128,7 @@ try {
128128
129129interface DOMRouterOpts {
130130 basename ?: string ;
131- future ?: Partial < RouterFutureConfig > ;
131+ future ?: Partial < FutureConfig > ;
132132 hydrationData ?: HydrationState ;
133133 unstable_dataStrategy ?: unstable_DataStrategyFunction ;
134134 unstable_patchRoutesOnMiss ?: unstable_PatchRoutesOnMissFunction ;
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import type {
88 CreateStaticHandlerOptions as RouterCreateStaticHandlerOptions ,
99 UNSAFE_RouteManifest as RouteManifest ,
1010 RouterState ,
11- FutureConfig as RouterFutureConfig ,
11+ FutureConfig ,
1212 To ,
1313} from "../router" ;
1414import {
@@ -270,7 +270,9 @@ export function createStaticHandler(
270270export function createStaticRouter (
271271 routes : RouteObject [ ] ,
272272 context : StaticHandlerContext ,
273- opts : { } = { }
273+ opts : {
274+ future ?: Partial < FutureConfig > ;
275+ } = { }
274276) : RemixRouter {
275277 let manifest : RouteManifest = { } ;
276278 let dataRoutes = convertRoutesToDataRoutes (
@@ -301,6 +303,7 @@ export function createStaticRouter(
301303 get future ( ) {
302304 return {
303305 unstable_skipActionErrorRevalidation : false ,
306+ ...opts ?. future ,
304307 } ;
305308 } ,
306309 get state ( ) {
You can’t perform that action at this time.
0 commit comments