Skip to content

👨‍👦 Add interceptor inheritance to axios

Notifications You must be signed in to change notification settings

miyakoj/axios-inherit

 
 

Repository files navigation

axios-inherit

👨‍👦 Add interceptor inheritance to axios

import axios from 'axios'
import axiosInherit from 'axios-inherit'

axiosInherit(axios)
  1. "Inherit" any existing interceptors of global axios instance when creating a new axios instance.
  2. Apply new interceptors to existing instances when adding interceptors to global axios instance.
  3. Do the same for adding interceptors ("use") and removing them ("eject")

About

👨‍👦 Add interceptor inheritance to axios

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%