You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
onError looks like onErrorHandle from monix but has a different behavior. However, the signature of onError can make it difficult detect this bug.
Consider:
vale1= effect.onError(e => log.info("Ok got it $e"))
If e1 is paired with another effect that has an error channel it will unify and it won't be clear to the user that this isn't actually handling the error. However, if this is paired with an operator like as or orElseSucceed, then we can infer that the user either misunderstands onError or could simplify by removing the as since it won't actually do anything.
i.e.
// They either want to use `catch*` or they can just remove the `as`.vale1= effect.onError(e => log.info("Ok got it $e") as 42)
The text was updated successfully, but these errors were encountered:
onError
looks likeonErrorHandle
from monix but has a different behavior. However, the signature ofonError
can make it difficult detect this bug.Consider:
If
e1
is paired with another effect that has an error channel it will unify and it won't be clear to the user that this isn't actually handling the error. However, if this is paired with an operator likeas
ororElseSucceed
, then we can infer that the user either misunderstandsonError
or could simplify by removing theas
since it won't actually do anything.i.e.
The text was updated successfully, but these errors were encountered: