@@ -436,7 +436,6 @@ export function historySyncPlugin<
436436 if ( activity . isRoot ) {
437437 requestHistoryTick ( ( ) => {
438438 silentFlag = true ;
439- console . log ( "replaceActivity" , activity ) ;
440439 replaceState ( {
441440 history,
442441 pathname : template . fill ( activity . params ) ,
@@ -446,12 +445,10 @@ export function historySyncPlugin<
446445 } ,
447446 useHash : options . useHash ,
448447 } ) ;
449- console . log ( "silentFlag - after" , silentFlag ) ;
450448 } ) ;
451449 } else {
452450 requestHistoryTick ( ( ) => {
453451 silentFlag = true ;
454- console . log ( "pushActivity" , activity ) ;
455452 pushState ( {
456453 history,
457454 pathname : template . fill ( activity . params ) ,
@@ -461,14 +458,12 @@ export function historySyncPlugin<
461458 } ,
462459 useHash : options . useHash ,
463460 } ) ;
464- console . log ( "silentFlag - after" , silentFlag ) ;
465461 } ) ;
466462 }
467463
468464 for ( const step of activity . steps ) {
469465 if ( ! step . exitedBy && step . enteredBy . name !== "Pushed" ) {
470466 requestHistoryTick ( ( ) => {
471- console . log ( "pushStep" , step ) ;
472467 silentFlag = true ;
473468 pushState ( {
474469 history,
@@ -479,16 +474,13 @@ export function historySyncPlugin<
479474 } ,
480475 useHash : options . useHash ,
481476 } ) ;
482- console . log ( "silentFlag - after" , silentFlag ) ;
483477 } ) ;
484478 }
485479 }
486480 }
487481 }
488482
489483 const onPopState : Listener = ( e ) => {
490- console . log ( "onPopState" , e ) ;
491- console . log ( "silentFlag" , silentFlag ) ;
492484 if ( silentFlag ) {
493485 silentFlag = false ;
494486 return ;
@@ -647,7 +639,6 @@ export function historySyncPlugin<
647639 } ,
648640 useHash : options . useHash ,
649641 } ) ;
650- console . log ( "silentFlag - after / onPushed" , silentFlag ) ;
651642 } ) ;
652643 } ,
653644 onStepPushed ( { effect : { activity, step } } ) {
@@ -673,7 +664,6 @@ export function historySyncPlugin<
673664 } ,
674665 useHash : options . useHash ,
675666 } ) ;
676- console . log ( "silentFlag - after / onStepPushed" , silentFlag ) ;
677667 } ) ;
678668 } ,
679669 onReplaced ( { effect : { activity } } ) {
@@ -697,7 +687,6 @@ export function historySyncPlugin<
697687 } ,
698688 useHash : options . useHash ,
699689 } ) ;
700- console . log ( "silentFlag - after / onReplaced" , silentFlag ) ;
701690 } ) ;
702691 } ,
703692 onStepReplaced ( { effect : { activity, step } } ) {
@@ -722,7 +711,6 @@ export function historySyncPlugin<
722711 } ,
723712 useHash : options . useHash ,
724713 } ) ;
725- console . log ( "silentFlag - after / onStepReplaced" , silentFlag ) ;
726714 } ) ;
727715 } ,
728716 onBeforePush ( { actionParams, actions : { overrideActionParams } } ) {
@@ -806,7 +794,6 @@ export function historySyncPlugin<
806794 if ( ( currentActivity ?. steps . length ?? 0 ) > 1 ) {
807795 requestHistoryTick ( ( ) => {
808796 silentFlag = true ;
809- console . log ( "silentFlag - before / onBeforeStepPop" , silentFlag ) ;
810797 history . back ( ) ;
811798 } ) ;
812799 }
@@ -835,16 +822,13 @@ export function historySyncPlugin<
835822 requestHistoryTick ( ( ) => {
836823 silentFlag = true ;
837824 history . back ( ) ;
838- console . log ( "silentFlag - before / onBeforePop" , silentFlag ) ;
839825 } ) ;
840826 }
841827 }
842828 } ,
843829 onChanged ( { actions : { getStack, push, stepPush } } ) {
844830 const stack = getStack ( ) ;
845831
846- console . log ( "stack" , stack ) ;
847-
848832 initialSetupProcess
849833 ?. captureNavigationOpportunity ( stack )
850834 . forEach ( ( event ) =>
0 commit comments