Query Headers Caching #8421
Unanswered
michailozdemir
asked this question in
Q&A
Replies: 1 comment
-
since you’re using axios, I’d suggest an axios request/response interceptor to add the header and re-fetch the token. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a simple question I didn't find answer to. Let's imagine some token refresh functionality which requires a query retry after the token has been re-fetched. In order to have a successful query retry, I need to update the headers for that query.
For some reason the generic axios headers update doesn't help and I can assume that query is being cached and so its headers.
What is the proper way to update the headers for query in such case and is there any way at all?
Beta Was this translation helpful? Give feedback.
All reactions