Open t-lock opened 1 year ago
It should not re-render in order for your request to grab the most recent token.
every time you request a method post to your request URL (your graphql endpoint) you will call it with the most recent token.
did you checked your network tab to verify your request includes your most recent token?
Passing in an updated token via props does not cause a re-render. Since the whole basis of this library is passing the Client through Context, and Context only being able to be set during component initialization, I do not see how it is possible to update the Client after initialization, such as when a new token is provided through a refresh token operation.
Please advise.