Memory leak in Unit Tests #3051
Answered
by
waterplea
zarghamkhandev
asked this question in
Q&A
-
Do we have some kind of mechanism in place to avoid memory leaks due to subscriptions ? I see following code can lead to floating subscriptions in memory:
|
Beta Was this translation helpful? Give feedback.
Answered by
waterplea
Nov 11, 2022
Replies: 2 comments
-
I believe since it's an output Angular terminates all subscriptions upon destruction. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
zarghamkhandev
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I believe since it's an output Angular terminates all subscriptions upon destruction.