subscribe
isn’t deprecated, only the variant you’re using is deprecated. In the future, subscribe
will only take one argument: either the next
handler (a function) or an observer object.
So in your case you should use:
.subscribe({
next: this.handleUpdateResponse.bind(this),
error: this.handleError.bind(this)
});
See these GitHub issues:
-
https://github.com/ReactiveX/rxjs/pull/4202
-
https://github.com/ReactiveX/rxjs/issues/4159