Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Axios is adding a fetch adapter natively. Will Redaxios have any use then? #93

Closed
nickchomey opened this issue Nov 24, 2022 · 2 comments

Comments

@nickchomey
Copy link

nickchomey commented Nov 24, 2022

This PR seems close to completion for adding a Fetch Adapter. axios/axios#5146

Will there be any need/use-case for Redaxios then? It seems like it would still be lighter-weight - is that because Redaxios is just pure Fetch, while Axios + Fetch Adapter would still have all of the XHR stuff built-in?

Thanks!

@rschristian
Copy link

Indeed, even with the adapter redaxios should continue to be much lighter than axios.

There is a bit of a feature difference between the two, axios provides a number of helpers and some data manipulation that will be carried over to the new fetch implementation from the sounds of it.

redaxios is (for some) a more comfortable API for interacting with fetch() while axios on the other hand is a bit more of an opinionated helper for making requests.

@nickchomey
Copy link
Author

Thanks! Yeah, I came to realize that redaxios isn't really axios with fetch, but just fetch with axios' api/interface. It doesn't appear to have interceptors, for example - despite there seeming to be an outstanding PR for it.

In all likelihood I'll end up using ofetch or wretch for my project - fetch with some axios-like features.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants