Yeah, that's the classic bundle size vs DX trade-off. Fetch definitely requires more boilerplate. The manual response.ok check and double await is annoying. For Lambda where I'm optimizing for cold starts, I'll deal with it, but for regular app dev where bundle size matters less, axios's cleaner API probably wins for me.
hn_throwaway_99|7 months ago
jedwards1211|7 months ago
Tokumei-no-hito|7 months ago
{ throwNotOk, parseJson }
they know that's 99% of fetch calls, i do t see why it can't be baked in.