Skip to content

Conversation

@dai-shi
Copy link
Owner

@dai-shi dai-shi commented Jun 27, 2019

ref: #13

Requiring to import from sub dir was a bad idea.
That was originally introduced with #1 .
To solve it, I made it so that useAxios requires axios instance in the first argument.
I think it's somewhat acceptable because I saw several examples like that.
(If it doesn't really work, we should create a separate npm package.)

@dai-shi dai-shi merged commit a7d1144 into master Jun 27, 2019
@dai-shi dai-shi deleted the no-sub-dir-import branch June 27, 2019 22:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants