Ky vs Fetch #javascript #webdevelopment #reactjs

preview_player
Показать описание
What's the benefit of using a fetching library like ky over JavaScript's native fetch function?

📣 Follow Coding in Flow on social media:
Рекомендации по теме
Комментарии
Автор

How about being a developer and do what a normal sane developer would do?

Writing a simple wrapper function to abstract all these configuration!

No need for additional learning curve, nor additional libraries or crap like that

mouradqqch
Автор

Probably with the same library underneath, just now with an extra wrapper around it introducing extra dependencies and probably bugs. If not now, then probably in the future when versions change. I'm not sure it's actually better. It just seems like that.

TheHighlander
Автор

Honestly I’d rather write code than rely on a import fetch isn’t too much code

thehobknocher
Автор

is it really better than Axios based on your experience?

amingrateful
Автор

Honestly I'd rather use Fetch and not hope that the library I'm using supports the exact use case I'm going for
For example, a while ago I tried to use Axios with a custom adapter that forces it to use Fetch; I found out that it doesn't support sending FormData, and so instead of using Axios for any request that isn't FormData, I switched to Fetch and removed any Axios for the sake of consistency

avi
Автор

I wonder if this is a better option than axios to opt for, otherwise i will keep using axios

UNDEREFFCT
Автор

I like Ky because it works with Deno, but I'm a little afraid that the community doesn't grow and the project is left behind. I should, I may start forking Ky and help.😂

LockeAG
Автор

ky sometime it work
so
weird. it not returned as expected. i must change to axios which is more stabler

anhvuuc
Автор

typical devs, wrapping poop in layers of shugar

arrangemonk
Автор

Can i use this instead of fetch in next js?

mhl_
Автор

Anybody who calls himself a 10x developer is full of shit.

Joenr
Автор

"10x developer like me"

Then goes and says header is added automatically. noob developer 😂

yesbit
Автор

10X developers keep their code base lean. And will not..., no and will never!!! Download a package because fetch has more codes. 10X developer my a** get out of here. Added more code to your entire project just because you want smaller lines of code.

tochimclaren