fetch-interceptor
Intercept fetch requests
Install
$ npm install --save fetch-interceptor
or
$ yarn add fetch-interceptor
Usage
const FetchInterceptor = ; // Register interceptor hooksconst interceptor = FetchInterceptor; // Make fetch requests to see interceptor in action; // Reset interceptor once you're doneinterceptor;