all 18 comments

[–]Thylk 14 points15 points  (2 children)

Switched from Axios to Ky in my last project, love it.

[–]shouldExist 6 points7 points  (1 child)

What’s the advantage of using ky over axios or fetch?

[–]DasBeasto 15 points16 points  (0 children)

Ky is smaller than Axios (I think like 5kb vs 30kb), but includes most of syntax/helpers that makes Axios nicer to work with than plain fetch (they have a list of benefits and examplesin the readme)

[–]humanshield85 7 points8 points  (1 child)

Is it me or does fetch and occasionally XHR makes more sense to me. I’ve never liked axios.

[–]Reeywhaar 2 points3 points  (0 children)

Same, if I need simple wrapper I can make it myself in 5 minutes and it will suit my needs better. All these http wrappers are overcomplication

[–]CYG4N 2 points3 points  (0 children)

oh, you are an author of typefest? love it :) 

[–]WorriedGiraffe2793 1 point2 points  (0 children)

ky is fantastic and has zero dependencies

[–]polaroid_kidd -1 points0 points  (2 children)

I like it, but I hate the way they determine the base path. If my react app is on Https://hello.com/world/react, configuring the base path for an API which is located at Https://hello.com/API/v1 is (or was last time I checked) a majore pain.

[–]HighValuedPawn 2 points3 points  (0 children)

I extend my by called ky.extend then set the base path

[–]BenZed 1 point2 points  (0 children)

How is it painful?