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
third parameter of interceptors.request.use
not work
#3736
Comments
Same issue, interceptor always runs so having to put in checks in the function body. |
Note that this feature is just on the master branch, but not released yet. |
@chinesedfan Do you know when this will be released or is there an estimation you're aware of? |
Can there be a hint in the ReadMe, as it shows the usage of these parameter? |
Has this been released yet? |
No. |
@anglinb hello, any plans to publish this to npm? |
If the feature is not yet available on a stable release then why is it in Readme w/o a note? |
This issue persists in version 0.21.4 as well. |
ver 0.25.0 still doesn't work in TS |
Looks like this was fixed here: #3800 (March 7, 2022). But it doesn't look like it's made it into an officially published version yet. |
Although, I'm very confused by this. Because according to this diff, it went in between Yes. Here is the file in the |
Describe the bug
onFulfilled
ofaxios.interceptors.request.use
run always.To Reproduce
Expected behavior
onFulfilled
run only ifmethod == 'get'
Environment
Additional context/Screenshots
Add any other context about the problem here. If applicable, add screenshots to help explain.
The text was updated successfully, but these errors were encountered: