Angular Modernizer
    Preparing search index...
    • Returns true when the observable chain feeding a .subscribe() call is piped through an operator that completes it (takeUntil, takeUntilDestroyed, take, first).

      Part of the shared subscription leak heuristics used by architecture:rxjs-memory-leak and angular:performance-violation (plugin-angular), so both rules agree on which subscriptions are safe:

      • .pipe(takeUntil(...)), .pipe(takeUntilDestroyed(...))
      • .pipe(take(<n>)), .pipe(first(...)) (complete on their own)
      • toSignal(...), firstValueFrom(...), lastValueFrom(...) are not .subscribe() calls and therefore never reported
      • class-level cleanup via DestroyRef.onDestroy(...) (hasDestroyRefCleanup)

      Parameters

      • call: CallExpression

      Returns boolean