mirror of
https://github.com/tenrok/axios.git
synced 2026-06-20 20:00:40 +03:00
docs: fix interceptor eject example to use correct instance (#10853)
This commit is contained in:
@@ -1188,7 +1188,7 @@ const instance = axios.create();
|
|||||||
const myInterceptor = instance.interceptors.request.use(function () {
|
const myInterceptor = instance.interceptors.request.use(function () {
|
||||||
/*...*/
|
/*...*/
|
||||||
});
|
});
|
||||||
axios.interceptors.request.eject(myInterceptor);
|
instance.interceptors.request.eject(myInterceptor);
|
||||||
```
|
```
|
||||||
|
|
||||||
You can also clear all interceptors for requests or responses.
|
You can also clear all interceptors for requests or responses.
|
||||||
|
|||||||
Reference in New Issue
Block a user