Skip to content

Commit

Permalink
fix(observables): http cancellable Subject should be unsubscribed
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding committed Apr 26, 2021
1 parent a84b489 commit c439324
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ export class FilterService {
}
if (isObservable(this.httpCancelRequests$)) {
this.httpCancelRequests$.next(); // this cancels any pending http requests
this.httpCancelRequests$.unsubscribe();
}
this.disposeColumnFilters();
this._onSearchChange = null;
Expand Down
1 change: 1 addition & 0 deletions src/app/modules/angular-slickgrid/services/sort.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ export class SortService {
}
if (isObservable(this.httpCancelRequests$)) {
this.httpCancelRequests$.next(); // this cancels any pending http requests
this.httpCancelRequests$.unsubscribe();
}
}

Expand Down

0 comments on commit c439324

Please sign in to comment.