monkey-front-core 0.0.396 → 0.0.398

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2749,15 +2749,24 @@ class MonkeyEcxCommonsService {
2749
2749
  }
2750
2750
  handleInit() {
2751
2751
  if (this.otherArgs?.router) {
2752
+ console.log('veio router');
2752
2753
  const { clearOnChangeRoute } = this.otherArgs?.schedule?.options || {
2753
2754
  clearOnChangeRoute: false
2754
2755
  };
2756
+ console.log('clearOnChangeRoute');
2757
+ console.log(clearOnChangeRoute);
2758
+ this.otherArgs.router.events.subscribe((resp) => {
2759
+ console.log('====');
2760
+ console.log(resp);
2761
+ });
2755
2762
  this.otherArgs.router.events
2756
2763
  .pipe(filter((event) => {
2757
2764
  return event instanceof NavigationStart;
2758
2765
  }), take(1))
2759
2766
  .subscribe(() => {
2767
+ console.log('veio destruir o schedule');
2760
2768
  if (this.__schedule && clearOnChangeRoute) {
2769
+ console.log('destruiu o schedule');
2761
2770
  this.otherArgs?.schedule?.service?.removeSchedule(this.__schedule);
2762
2771
  this.__schedule = null;
2763
2772
  }