is select a memory leak? #1722
-
Just a quick question. Since you do not unsubscribe in your select decorator, I think it might be a memory leak. I could be wrong. Didn't go to deep into the code. But I am curious how it is unsubscribed. |
Beta Was this translation helpful? Give feedback.
Answered by
markwhitfeld
Feb 25, 2021
Replies: 1 comment 1 reply
-
The |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
splincode
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The
@Select
decorator merely makes the observable available at that property. It does not subscribe.If you subscribe then you would have to manage that subscription, but I would recommend using the
async
pipe to manage your subscription in the template.