@@ -308,11 +308,11 @@ export class AppRoutingEffects {
308
308
} ) ,
309
309
map ( ( programmaticalNavigation ) => {
310
310
const nav = programmaticalNavigation ! ;
311
- const routeKind = nav . routeKind ;
312
- const resetNamespacedState = nav . resetNamespacedState ;
311
+ const { replaceState = false , resetNamespacedState, routeKind} = nav ;
313
312
314
- // TODO(stephanwlee): currently, the RouteParams is ill-typed and you can
315
- // currently add any property without any type error. Better type it.
313
+ // TODO(stephanwlee): currently, the RouteParams is ill-typed and you
314
+ // can currently add any property without any type error. Better type
315
+ // it.
316
316
let routeParams : RouteParams ;
317
317
switch ( nav . routeKind ) {
318
318
case RouteKind . COMPARE_EXPERIMENT :
@@ -325,16 +325,16 @@ export class AppRoutingEffects {
325
325
default :
326
326
routeParams = nav . routeParams ;
327
327
}
328
- return { routeKind, routeParams, resetNamespacedState} ;
328
+ return { replaceState , routeKind, routeParams, resetNamespacedState} ;
329
329
} ) ,
330
- map ( ( { routeKind, routeParams, resetNamespacedState} ) => {
330
+ map ( ( { replaceState , routeKind, routeParams, resetNamespacedState} ) => {
331
331
const routeMatch = this . routeConfigs
332
332
? this . routeConfigs . matchByRouteKind ( routeKind , routeParams )
333
333
: null ;
334
334
return {
335
335
routeMatch,
336
336
options : {
337
- replaceState : false ,
337
+ replaceState,
338
338
browserInitiated : false ,
339
339
namespaceUpdate : {
340
340
option : resetNamespacedState
0 commit comments