use-http
use-http copied to clipboard
[Feature Request] Call both <Provider> and useFetch() response interceptors...
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