Replies: 1 comment 3 replies
-
Is there a reason you don't handle this in the |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
I'm trying to intercept common errors in my app for all endpoints such as
Unauthorized
, etc.Using this approach in the docs I can.. kind of do that.
Is the below code acceptable? Mostly interested in modifying the actions status under certain conditions because I need
isError
not to betrue
in my components since this error has already been handled. See comments inlineEssentially I need a way to mark the intercepted errors as handled so my component code doesn't interpret them as not. Ideally my components would only check for specifics or I'd handle all network errors in the middleware but in lieu of that this... seems to work?
This may just be an incorrect approach all-together 😅.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions