Why is the throwError operator depreciated? #7312
-
The operator |
Beta Was this translation helpful? Give feedback.
Answered by
demensky
Jul 26, 2023
Replies: 1 comment 1 reply
-
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);
}
}); |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
kwonoj
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Only the overload where the error object is passed directly has been deprecated.