is unsubscribe needed in my case? #7304
Unanswered
bagaskarala
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
i use rxjs on vue project. there are API service which made of observable, then it can be used on component.
here is my code to fetch report from API, then i invoke it
fetchReport()
on mounted or on click button. the usecase is user can click more than once in the button.should i implement
unsubscribe
in this case? what if i dont implement it, does this affect on memory leaks?i still dont get it, what i think for now is, when that method is finish executed, the subscription will be ended, is it true or not? need further explanation
Beta Was this translation helpful? Give feedback.
All reactions