We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ae1568 commit 4c01176Copy full SHA for 4c01176
examples/react-app/request.ts
@@ -17,7 +17,7 @@ const axiosInstance = axios.create({
17
});
18
19
// Add a request interceptor
20
-axios.interceptors.request.use(
+axiosInstance.interceptors.request.use(
21
function (config) {
22
// Do something before request is sent
23
return config;
@@ -29,7 +29,7 @@ axios.interceptors.request.use(
29
);
30
31
// Add a response interceptor
32
-axios.interceptors.response.use(
+axiosInstance.interceptors.response.use(
33
function (response) {
34
// Any status code that lie within the range of 2xx cause this function to trigger
35
// Do something with response data
0 commit comments