F

Fox Root • 195 Points
Mover

Q. What happens when unsubscribe() is called?

  • (A) Observable restarts
  • (B) Subscription is cancelled and resources are released
  • (C) Error occurs
  • (D) Data is cached
  • Correct Answer - Option(B)
  • Views: 1
  • Filed under category RxJS
  • Hashtags:

Explanation by: Fox Root
unsubscribe() prevents memory leaks by stopping data emissions.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.