M
M
Makito2018-08-27 08:58:11
Angular
Makito, 2018-08-27 08:58:11

How to break rxjs 6 version chain execution?

Good day to all.
The crux of the matter: previously, the syntax for sequential calls to the server could be formatted like this:

this._someService.someMethod()
  .concatMap(...)
  .concatMap(...)
  ...
  .subscribe(...);

and if, for example, an error occurred in the second call, then all subsequent ones were canceled.
Now the syntax is:
this._someService.someMethod()
  .pipe(
    concatMap(...),
    concatMap(...),
    ...
  ).subscribe(...);

And now if an error occurs in one of the initial calls, then all subsequent calls still work, how to return the behavior with the cancellation of subsequent calls?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question