Custom headers in the generated react-query hook #7433
Unanswered
dominikx96
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there!
I use a codegen + react query + my own fetcher to deal with API calls.
My requirements:
I think option:
fetcher: 'fetch'
works with my second requirement (I am able to put extra headers/endpoints for each hook), but I can't throw graphql errors using my own format (there is a default throw that comes from native fetch method).Is there any option to create a solution (maybe combining a proper config + custom fetcher) to meet both requirements?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions