You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Oops, I just realized my "How to reproduce the issue" and "Workaround" code were actually the same. I modified the "How to reproduce the issue" example to remedy that. The issue occurs when using a single instance of a client, which I assume is preferred?
Intended outcome:
I am able to make multiple queries with the same client, with the same GraphQL query, but with different custom headers.
Actual outcome:
The first set custom header is used for all following queries.
How to reproduce the issue:
edit: moved the client definition outside of the fetch function.
Workaround:
Using a
fetchPolity
ofno-cache
makes no difference. The only workaround I've figured out so far is to create a new client for every request:Versions
The text was updated successfully, but these errors were encountered: