logoalt Hacker News

pier25yesterday at 1:12 PM3 repliesview on HN

People use axios or ky because with fetch you inevitably end up writing a small wrapper on top of it anyway.


Replies

zachripyesterday at 2:57 PM

Fetch has also lacked support for features that xhr has had for over a decade now. For example upload progress. It's slowly catching up though, upload progress is the only thing I'd choose xhr for.

show 1 reply
afavouryesterday at 1:14 PM

Some might say the tradeoff of writing a small wrapper is worth it given what’s been demonstrated here.

show 1 reply
jmullyesterday at 2:20 PM

In my experience people feel the need to wrap axios too.

show 1 reply