Skip to content

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

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
ericlowry opened this issue May 25, 2020 · 0 comments

Comments

@ericlowry
Copy link

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant