File tree 2 files changed +6
-6
lines changed
2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -306,6 +306,9 @@ export function createStaticRouter(
306
306
} ,
307
307
_internalFetchControllers : new Map ( ) ,
308
308
_internalActiveDeferreds : new Map ( ) ,
309
+ _internalSetRoutes ( ) {
310
+ throw msg ( "_internalSetRoutesAndRevalidate" ) ;
311
+ } ,
309
312
} ;
310
313
}
311
314
Original file line number Diff line number Diff line change @@ -218,7 +218,7 @@ export interface Router {
218
218
* HMR needs to pass in-flight route updates to React Router
219
219
* TODO: Replace this with granular route update APIs (addRoute, updateRoute, deleteRoute)
220
220
*/
221
- _internalSetRoutesAndRevalidate ( routes : AgnosticRouteObject [ ] ) : void ;
221
+ _internalSetRoutes ( routes : AgnosticRouteObject [ ] ) : void ;
222
222
223
223
/**
224
224
* @internal
@@ -2290,11 +2290,8 @@ export function createRouter(init: RouterInit): Router {
2290
2290
return null ;
2291
2291
}
2292
2292
2293
- function _internalSetRoutesAndRevalidate (
2294
- newRoutes : AgnosticDataRouteObject [ ]
2295
- ) {
2293
+ function _internalSetRoutes ( newRoutes : AgnosticDataRouteObject [ ] ) {
2296
2294
inFlightDataRoutes = newRoutes ;
2297
- revalidate ( ) ;
2298
2295
}
2299
2296
2300
2297
router = {
@@ -2326,7 +2323,7 @@ export function createRouter(init: RouterInit): Router {
2326
2323
_internalActiveDeferreds : activeDeferreds ,
2327
2324
// TODO: Remove setRoutes, it's temporary to avoid dealing with
2328
2325
// updating the tree while validating the update algorithm.
2329
- _internalSetRoutesAndRevalidate ,
2326
+ _internalSetRoutes ,
2330
2327
} ;
2331
2328
2332
2329
return router ;
You can’t perform that action at this time.
0 commit comments