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
When receiving an error like FETCH_ONE_ERROR, the meta data is lacking some information about the error type. For example, the appplication would act differently on an 404 (show a "not found" page), than on a 403 ("redirect to login"). Am I missing some option to achieve that?
The text was updated successfully, but these errors were encountered:
I have some plans in #38 to pass response headers along with responses, but I hadn't considered this for errors. It would certainly be a breaking change.
To get this working for your app, you can copy ApiClient.js into your project and modify it to pass the headers along with the error object. If you come up with a good way to do this, please submit your approach as a pull request!
When receiving an error like
FETCH_ONE_ERROR
, the meta data is lacking some information about the error type. For example, the appplication would act differently on an 404 (show a "not found" page), than on a 403 ("redirect to login"). Am I missing some option to achieve that?The text was updated successfully, but these errors were encountered: