fetch.io icon indicating copy to clipboard operation
fetch.io copied to clipboard

:tea: A tiny wrapper of whatwg fetch api! :dancer:

Results 1 fetch.io issues
Sort by recently updated
recently updated
newest added

现在是: ```js fetch('...') .then(r => Promise.resolve(afterResponse(r))) ``` 如果 api 因为跨域或者网络问题让 fetch 这一步抛错,是否也应该让 afterResponse 有机会处理错误?比如去掉全局 loading 或者弹窗通知用户: ```js fetch('...') .then(r => Promise.resolve(afterResponse(r))) .catch(e => { afterResponse(e) throw e }) ```