axios-inherit
v1.0.1
Published
π¨βπ¦ Add interceptor inheritance to axios
Downloads
7,104
Readme
axios-inherit
π¨βπ¦ Add interceptor inheritance to axios
import axios from 'axios'
import axiosInherit from 'axios-inherit'
axiosInherit(axios)
- "Inherit" any existing interceptors of global axios instance when creating a new axios instance.
- Apply new interceptors to existing instances when adding interceptors to global axios instance.
- Do the same for adding interceptors ("use") and removing them ("eject")