Skip to content

Why is the throwError operator depreciated? #7312

Closed Answered by demensky
mlc-mlapis asked this question in Q&A
Discussion options

You must be logged in to vote

Only the overload where the error object is passed directly has been deprecated.

-throwError(new Error())
+throwError(() => new Error())
   .subscribe({
     error: (error) => {
       console.log(error);
     }
   });

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@mlc-mlapis
Comment options

Answer selected by kwonoj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants