Skip to content

Support Angular's takeUntilDestroyed operator #16

Description

@dkimmich-onventis

Angular 16 introduces a new takeUntilDestroyed() operator for destroying subscriptions, see their v16 blog post. The prefer-takeuntil rule should by default not raise a lint error when this operator is used on a subscription.

In the meantime we can add this operator to the alias option:

'rxjs-angular/prefer-takeuntil': [
  'error',
  {
    alias: ['takeUntilDestroyed'],
  },
],

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions