You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code snippet does proper unsubscribe handling in ngOnDestroy but results in a false positive lint error.
@Component({selector: "superclass-composed-component",template: "<span>{{ value }}</span>"})exportclassSuperclassComposedComponentextendsUnsubscribeOnDestroyimplementsOnInit{value: string;ngOnInit(){this.subscription.add(of("foo").subscribe(value=>this.value=value));}}abstractclassUnsubscribeOnDestroyimplementsOnDestroy{subscription=newSubscription();ngOnDestroy(){this.subscription.unsubscribe();}}
The text was updated successfully, but these errors were encountered:
apeeters
changed the title
False positive prefer-angular-composition false positive with unsubscribe in super class
False positive prefer-angular-composition with unsubscribe in super class
Oct 12, 2020
The following code snippet does proper unsubscribe handling in ngOnDestroy but results in a false positive lint error.
The text was updated successfully, but these errors were encountered: