top | item 44782946

(no title)

hokkos | 6 months ago

Like axios can do it if you specify the fetch backend, it just won't do the .json() asynchronously.

discuss

order

tracker1|6 months ago

I'm actually not a big fan of the async .json from fetch, because when it fails (because "not json"), then you can't peak at the text instead. Of course, you can clone the response, apparently, and then read text from the clone... and if you're wrapping for some other handling, it isn't too bad.