cartant / rxjs-tslint-rules

TSLint rules for RxJS
https://cartant.github.io/rxjs-tslint-rules/
MIT License
371 stars 22 forks source link

rxjs-prefer-angular-takeuntil doesn't work with param "this" #121

Closed retoforte closed 3 years ago

retoforte commented 3 years ago

Hi, I have been trying to implement rxjs-prefer-angular-takeuntil by using an alias like this one "untilDestroyed", but if the param is a reference with the keyword "this" it doesn't work.

Sample let otroObservable = of('a'); const sub: Observable = new Observable(); sub.pipe(untilDestroyed(this)).subscribe(() => { console.log('demo'); });

Is there a way of making this work?

cartant commented 3 years ago

See #115.