Skip to main content

What it flags

An RxJS subscription in a component has no completing operator or ngOnDestroy unsubscribe and keeps running after destruction. Put takeUntilDestroyed() after operators such as switchMap() that create inner subscriptions. An active inner subscription may outlive completion of the outer observable. Operators that wait for their source to complete, such as last() and takeLast(), do not end an infinite source.

Configuration

Set the rule to "off" in loadwise.config.json to drop its findings: