-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem refetching after login/logout #579
Comments
the way to handle this is to create a shiny new context every time you log in/out, which will discard all cache previously collected. basically, you'd call |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've read all issues regarding this topic but I couldn't find any solution for forcing a refetch after login/logout.
The problem is that after logging in, the user is redirected to the homepage. However, the render method is called with the previous query result, and the user gets redirected back to the login page.
I've tried the following solutions:
prepareVariabes
based on a location state flag. Although it forces fetching, the query is executed twiceretry
method based on a location state flag, but it looks like there is no way to call retry in the render method without ending in an infinite loopIs there any other alternative solution?
The text was updated successfully, but these errors were encountered: