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?
Maybe a consumer doesn't want to install
axios
, but wants the API so they install an API-compliant replacement likeredaxios
. They may not want to pass in a custom "Axios" instance every time they use the hook. Should there be a way to globally configureuse-axios
to use a certain "Axios" instance? Or should consumers just wrap and re-exportuse-axios
in their project code?