use-axios-client icon indicating copy to clipboard operation
use-axios-client copied to clipboard

Global configuration?

Open therealparmesh opened this issue 4 years ago • 2 comments

Maybe a consumer doesn't want to install axios, but wants the API so they install an API-compliant replacement like redaxios. They may not want to pass in a custom "Axios" instance every time they use the hook. Should there be a way to globally configure use-axios to use a certain "Axios" instance? Or should consumers just wrap and re-export use-axios in their project code?

therealparmesh avatar Apr 27 '20 20:04 therealparmesh

Really interesting idea - will open an issue for this.

zxqx avatar Apr 27 '20 23:04 zxqx

Oh wait, this is an issue lol. Let's take a stab at this soon. Any ideas for what this might look like API-wise?

zxqx avatar Apr 27 '20 23:04 zxqx