In RxJS, to ensure that resources like subscriptions are released when an Observable completes or errors out, you can use the _____ operator.

  • distinctUntilChanged
  • filter
  • finalize
  • takeUntil
To ensure resource cleanup when an Observable completes or errors out, you can use the finalize operator in RxJS.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *