jinaga
That lib need execute in browser for xmlhttprequests to work
Axios maybe works on node, and it does everything async by default.
I suggest it as alternative to jinga since you're working on XHR.
Fetch is supported by browsers
Yes, but you wanted to use XHR in your lib, Axios is basically an async wrapper for it
It's not my lib. I am a contributor
I'll create a pull to use fetch instead of xhr
Still XHR ain't that bad. I use axios and it works perfectly well, for me at least. Except for the few cors issue which I have to keep managing along with my custom instance instead of the default one, it's perfect.
I'm still doing axios. Seriously, the most interesting thing about it is interceptors. On request, auto assign api key or whatever headers. On response, handle all global 404 or 400 requests
Обсуждают сегодня