A memory leak will happen if users use saveRequests: true and forget to call interceptor.clear() regularly (i.e. afterEach). We could show a warning in the console if the number of saved intercepted requests exceeds a safe limit. The limit should be configurable per interceptor and default to all interceptors.
A memory leak will happen if users use
saveRequests: true
and forget to callinterceptor.clear()
regularly (i.e.afterEach
). We could show a warning in the console if the number of saved intercepted requests exceeds a safe limit. The limit should be configurable per interceptor and default to all interceptors.