Adds takeUntilDestroyed() to raw .subscribe() calls in lifecycle hooks of a @Component class, so the subscriptions end with the component.
takeUntilDestroyed()
.subscribe()
@Component
takeUntilDestroyed
DestroyRef
metadata.originalText
Readonly
Rule ID reported in every TransformResult.
TransformResult
Applies the transformation to context.sourceFile in place.
context.sourceFile
Transform context of the file.
Result with modified: false and a reason when nothing applies.
modified: false
Adds
takeUntilDestroyed()to raw.subscribe()calls in lifecycle hooks of a@Componentclass, so the subscriptions end with the component.takeUntilDestroyed, and reuses an existingDestroyReffield instead of adding a new one.metadata.originalText.