Replies: 1 comment
-
If you want to, you can override injections on the store provider at runtime. Alternatively, you could depend on & access the store state within your interceptor import store from './my-store';
const instance = axios.create();
instance.interceptors.request.use(function () {
store.getState()
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How can I update my axios interceptor directly with state value ?
Or how could inject runtime axios instance ?
Beta Was this translation helpful? Give feedback.
All reactions