Reactjs – dispatch in axios interceptor with redux-toolkit
I'm trying to dispatch a redux toolkit action inside an axios response interceptor. I've seen some other question suggesting people to use store.dispatch(somefunction()) In redux toolkit you usually call the useDispatch() hook to dispatch an action, but since its a…