monkey-front-core 0.0.400 → 0.0.402

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.
@@ -7,7 +7,7 @@ import { CommonModule, formatNumber, CurrencyPipe } from '@angular/common';
7
7
  import * as i1$1 from '@ngx-translate/core';
8
8
  import { TranslateModule, TranslateService } from '@ngx-translate/core';
9
9
  import * as moment_ from 'moment';
10
- import { map, catchError, filter, take, takeWhile, first, takeUntil, mergeMap, finalize } from 'rxjs/operators';
10
+ import { map, catchError, filter, takeWhile, take, first, takeUntil, mergeMap, finalize } from 'rxjs/operators';
11
11
  import { throwError, BehaviorSubject, Subscription, interval, concat, of, Subject, from } from 'rxjs';
12
12
  import * as i1$2 from '@angular/common/http';
13
13
  import { HttpParams, HttpErrorResponse, HTTP_INTERCEPTORS, HttpClientModule } from '@angular/common/http';
@@ -2720,6 +2720,7 @@ class MonkeyEcxCommonsService {
2720
2720
  this.tokenStorage = tokenStorage;
2721
2721
  this.otherArgs = otherArgs;
2722
2722
  this.flagValidator = true;
2723
+ this.destroyed = false;
2723
2724
  this.__data$ = null;
2724
2725
  this.__pagination$ = null;
2725
2726
  this.__control$ = null;
@@ -2756,9 +2757,12 @@ class MonkeyEcxCommonsService {
2756
2757
  this.otherArgs.router.events
2757
2758
  .pipe(filter((event) => {
2758
2759
  return event instanceof NavigationStart;
2759
- }), take(1))
2760
+ }), takeWhile(() => {
2761
+ return !this.destroyed;
2762
+ }))
2760
2763
  .subscribe(() => {
2761
2764
  console.log('veio destruir o schedule');
2765
+ console.log(context);
2762
2766
  console.log(context.__schedule);
2763
2767
  console.log(this.__schedule);
2764
2768
  console.log(clearOnChangeRoute);
@@ -2884,6 +2888,7 @@ class MonkeyEcxCommonsService {
2884
2888
  this.__error = null;
2885
2889
  this.__handledError = null;
2886
2890
  this.flagValidator = false;
2891
+ this.destroyed = true;
2887
2892
  }
2888
2893
  resolve(route, state, otherArgs) {
2889
2894
  if (JSON.stringify(route?.queryParams) === '{}') {