2
0
mirror of https://github.com/tenrok/axios.git synced 2026-06-17 19:21:29 +03:00

docs: fix interceptor eject example to use correct instance (#10853)

This commit is contained in:
Divyanshu Raj
2026-05-06 17:16:52 +05:30
committed by GitHub
parent 05436fd562
commit 23fd0a6a16
+1 -1
View File
@@ -1188,7 +1188,7 @@ const instance = axios.create();
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.