Skip to content

Commit

Permalink
Deprecate SubscriptionDisposable
Browse files Browse the repository at this point in the history
  • Loading branch information
Nateowami committed Nov 14, 2024
1 parent 5e0b243 commit c413b4d
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@ import { Directive, OnDestroy } from '@angular/core';
import { Observable, Subject, Subscription } from 'rxjs';
import { takeUntil } from 'rxjs/operators';

/** Handles Observable unsubscribing */
/** Handles Observable unsubscribing
* @deprecated Angular previously did not have a good way to subscribe to a component's destruction. This class was used
* to help handle unsubscribing when a component was destroyed. When possible, use
* {@link https://angular.dev/api/core/DestroyRef DestroyRef}.
*/
// Decorator required by Angular compiler
@Directive()
// eslint-disable-next-line @angular-eslint/directive-class-suffix
Expand Down

0 comments on commit c413b4d

Please sign in to comment.