File tree 4 files changed +10
-10
lines changed
4 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -368,10 +368,7 @@ describe("useResolvedPath", () => {
368
368
// gh-issue #11629
369
369
it ( "'.' resolves to the current path including any splat paths nested in pathless routes" , ( ) => {
370
370
let { container } = render (
371
- < MemoryRouter
372
- initialEntries = { [ "/foo/bar" ] }
373
- future = { { v7_relativeSplatPath : true } }
374
- >
371
+ < MemoryRouter initialEntries = { [ "/foo/bar" ] } >
375
372
< Routes >
376
373
< Route path = "foo" >
377
374
< Route >
Original file line number Diff line number Diff line change 1
1
import type {
2
- FutureConfig as RouterFutureConfig ,
2
+ FutureConfig ,
3
3
HydrationState ,
4
4
InitialEntry ,
5
5
LazyRouteFunction ,
@@ -127,7 +127,7 @@ export function createMemoryRouter(
127
127
routes : RouteObject [ ] ,
128
128
opts ?: {
129
129
basename ?: string ;
130
- future ?: Partial < RouterFutureConfig > ;
130
+ future ?: Partial < FutureConfig > ;
131
131
hydrationData ?: HydrationState ;
132
132
initialEntries ?: InitialEntry [ ] ;
133
133
initialIndex ?: number ;
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import type {
12
12
unstable_DataStrategyFunction ,
13
13
Fetcher ,
14
14
FormEncType ,
15
- FutureConfig as RouterFutureConfig ,
15
+ FutureConfig ,
16
16
GetScrollRestorationKeyFunction ,
17
17
HashHistory ,
18
18
History ,
@@ -124,7 +124,7 @@ try {
124
124
125
125
interface DOMRouterOpts {
126
126
basename ?: string ;
127
- future ?: Partial < RouterFutureConfig > ;
127
+ future ?: Partial < FutureConfig > ;
128
128
hydrationData ?: HydrationState ;
129
129
unstable_dataStrategy ?: unstable_DataStrategyFunction ;
130
130
unstable_patchRoutesOnMiss ?: unstable_PatchRoutesOnMissFunction ;
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import type {
8
8
CreateStaticHandlerOptions as RouterCreateStaticHandlerOptions ,
9
9
UNSAFE_RouteManifest as RouteManifest ,
10
10
RouterState ,
11
- FutureConfig as RouterFutureConfig ,
11
+ FutureConfig ,
12
12
To ,
13
13
} from "../router" ;
14
14
import {
@@ -270,7 +270,9 @@ export function createStaticHandler(
270
270
export function createStaticRouter (
271
271
routes : RouteObject [ ] ,
272
272
context : StaticHandlerContext ,
273
- opts : { } = { }
273
+ opts : {
274
+ future ?: Partial < FutureConfig > ;
275
+ } = { }
274
276
) : RemixRouter {
275
277
let manifest : RouteManifest = { } ;
276
278
let dataRoutes = convertRoutesToDataRoutes (
@@ -301,6 +303,7 @@ export function createStaticRouter(
301
303
get future ( ) {
302
304
return {
303
305
unstable_skipActionErrorRevalidation : false ,
306
+ ...opts ?. future ,
304
307
} ;
305
308
} ,
306
309
get state ( ) {
You can’t perform that action at this time.
0 commit comments