We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
After latest update related to the CancelToken, there is an issue with:
CancelToken
axios-hooks/src/index.js
Line 148 in 307c7c1
Everything works when you use AxiosStatic, imported directly from `axios. But when you pass your own instance through the options, like:
AxiosStatic
configure({ axios: axios.create({ baseURL: theme.config.api.endpoint, }), });
it is AxiosInstance used which doesn't contain CancelToken property anymore and it ends up with the following error in mentioned line:
AxiosInstance
TypeError: Cannot read property 'source' of undefined
The text was updated successfully, but these errors were encountered:
I've stumbled upon the same issue. Ultimately had to downgrade to 1.5.0.
Sorry, something went wrong.
4a63b6e
Fixed in 1.7.2
Commit looks fine, I'll test it tomorrow. Thanks!
No branches or pull requests
After latest update related to the
CancelToken
, there is an issue with:axios-hooks/src/index.js
Line 148 in 307c7c1
Everything works when you use
AxiosStatic
, imported directly from `axios.But when you pass your own instance through the options, like:
it is
AxiosInstance
used which doesn't containCancelToken
property anymore and it ends up with the following error in mentioned line:The text was updated successfully, but these errors were encountered: