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
executeGet
execute
Still an issue with both executeGet and execute methods returned by:
import { makeUseAxios } from 'axios-hooks' const baseUrl = 'some api base url' const url = 'some api get endpoint' const createAxios = makeUseAxios({ axios: axios.create({ baseURL: baseUrl }) }) const config: AxiosRequestConfig = { method, url: baseUrl + url, headers: { authorization: token ? 'Bearer ' + token : '' } } const [{ data, loading, error }, execute] = createAxios( config, { manual: true } )
Strangely post method works just fine whereas binding executeGet to onClick of a Button element does nothing.
onClick
Originally posted by @spogulis in #82 (comment)
The text was updated successfully, but these errors were encountered:
Please provide a repro, I already posted in the original issue an example showing that it works.
Sorry, something went wrong.
The repro you posted is not available.
Here's the repro. Note though that since you are reporting an issue, you are expected to provide a repro.
https://codesandbox.io/s/issue-82-repro-v0z6d6?file=/src/index.js
Thank you.
No branches or pull requests
Still an issue with both
executeGet
andexecute
methods returned by:Strangely post method works just fine whereas binding
executeGet
toonClick
of a Button element does nothing.Originally posted by @spogulis in #82 (comment)
The text was updated successfully, but these errors were encountered: