Replies: 1 comment
-
We can't do it automatically because the class isn't aware of life cycle hooks. When you subscribe to something, you have to unsubscribe unless you're explicitly told in the docs that it will happen automatically. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
I've recently discovered that disabledWhile() returns back a Subscription.
I'm assuming it is expected that I will be the one unsubscribing in ngOnDestroy.
Thanks.
Proposed solution
Have reactive-forms unsubscribe from disabledWhile() Subscription automatically.
Or update docs.
Alternatives considered
Do you want to create a pull request?
No
Beta Was this translation helpful? Give feedback.
All reactions