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

Global configuration? #105

Open
therealparmesh opened this issue Apr 27, 2020 · 2 comments
Open

Global configuration? #105

therealparmesh opened this issue Apr 27, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@therealparmesh
Copy link
Collaborator

therealparmesh commented Apr 27, 2020

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?

@zxqx
Copy link
Member

zxqx commented Apr 27, 2020

Really interesting idea - will open an issue for this.

@zxqx
Copy link
Member

zxqx commented Apr 27, 2020

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 zxqx added the enhancement New feature or request label Apr 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants