use-http icon indicating copy to clipboard operation
use-http copied to clipboard

[Feature Request] Call both <Provider> and useFetch() response interceptors...

Open ericlowry opened this issue 5 years ago • 0 comments

Hey There,

Sorry if I am following the wrong submission format (I didn't see any guidance for feature requests).

I am wondering if it is possible for both the Provider's response interceptor and the useFetch's response interceptor to be called? I would expect the Provider to run first and useFetch to have a chance to manipulate the response further. It feels natural to me that the provide would process a response 'globally' and that useFetch could just manipulate the things it cares about.

Does this sound reasonable or am I missing some obvious "gotcha"?

Thanks for this great library!

Eric

ericlowry avatar May 25 '20 02:05 ericlowry