monkey-front-core 0.0.398 → 0.0.400

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.
@@ -2745,26 +2745,23 @@ class MonkeyEcxCommonsService {
2745
2745
  return console.error('Method callbackPagination needs to be declared');
2746
2746
  };
2747
2747
  this.__isAbleToDoPagination = {};
2748
- this.handleInit();
2748
+ this.handleInit(this);
2749
2749
  }
2750
- handleInit() {
2750
+ handleInit(context) {
2751
2751
  if (this.otherArgs?.router) {
2752
2752
  console.log('veio router');
2753
2753
  const { clearOnChangeRoute } = this.otherArgs?.schedule?.options || {
2754
2754
  clearOnChangeRoute: false
2755
2755
  };
2756
- console.log('clearOnChangeRoute');
2757
- console.log(clearOnChangeRoute);
2758
- this.otherArgs.router.events.subscribe((resp) => {
2759
- console.log('====');
2760
- console.log(resp);
2761
- });
2762
2756
  this.otherArgs.router.events
2763
2757
  .pipe(filter((event) => {
2764
2758
  return event instanceof NavigationStart;
2765
2759
  }), take(1))
2766
2760
  .subscribe(() => {
2767
2761
  console.log('veio destruir o schedule');
2762
+ console.log(context.__schedule);
2763
+ console.log(this.__schedule);
2764
+ console.log(clearOnChangeRoute);
2768
2765
  if (this.__schedule && clearOnChangeRoute) {
2769
2766
  console.log('destruiu o schedule');
2770
2767
  this.otherArgs?.schedule?.service?.removeSchedule(this.__schedule);