Answer the question
In order to leave comments, you need to log in
What are subscriptions and unsubscriptions in React?
I watch a training video lesson and there the teacher says this sentence:
For example, you subscribed to DidMount, the component works, it works, and then you want the component to close so that you can unsubscribe. If I don’t unsubscribe, there will be a lot of subscriptions and garbage will be collected.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question