Export ErrorResponse utility class #10665
tlindsay42
started this conversation in
Proposals
Replies: 1 comment
-
This class should be exported. In the official docs, there is a how-to on setting up your error element with multiple if blocks over ErrorResponses. And if you have it set up this way, you should also be able to handle responses thrown from effects etc. Because that is now how you propagate authentication errors etc. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'd like for the
ErrorResponse
private utility class to be exported (ie: non-private) fromreact-router-dom
to simplify error handling. I'm currently using a shared component for both route errors and deferred loader async errors (ie:useAsyncError
values) with a switch for selecting child components based on response status, and this gap makes the implementation more complex than necessary.Beta Was this translation helpful? Give feedback.
All reactions