-
Notifications
You must be signed in to change notification settings - Fork 86
Open
Description
This probably isn't an issue or an enhancement request. I am just trying to understand the thinking of returning only the statusCode and statusText when experiencing an error during fetch. Sometimes the API returns detailed information about what the problem is in the response body, and this strips it away. A third property which is the response body could expose that again.
Is this just implemented this was as it's a good starting point for most cases and a user of redux-api can easily implement their own adapter if they need different behaviour?
redux-api/src/adapters/fetch.js
Line 29 in e760763
| return Promise.reject({ status, statusText }); |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels