Open Michsior14 opened 2 years ago
Current behavior
The following code throws error ("Forbids calling subscribe without an accompanying takeUntil") in the current version:
subscribe
takeUntil
@Component() class Test { #destroyer = new Subject(); public ngOnInit(): void { someStream.pipe(takeUntil(this.#destroyer)).subscribe(); } }
Expected behavior
The # prefixed variables can be used within takeUntil when prefer-takeuntil rule is enabled.
#
prefer-takeuntil
Current behavior
The following code throws error ("Forbids calling
subscribe
without an accompanyingtakeUntil
") in the current version:Expected behavior
The
#
prefixed variables can be used withintakeUntil
whenprefer-takeuntil
rule is enabled.