Cache is updating on only the first failed request after refetch #4062
Unanswered
manuelbosi
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
-
In my next js application I use a custom baseQuery that refresh the user jwt token and retry failed api call.
In the network panel I can see all the apis have been called successfully after refresh, but seems that rtk query update cache only for the first call after refresh, because the ui update only with the data from the first api call.
I also tried to change my component with simple html tag but the problem is the same.
For example, in the image below the
/me
endpoint update the ui using the new data, but/templates
endpoint not.This is my baseQuery
Beta Was this translation helpful? Give feedback.
All reactions