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
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:
Adding a nonce in the prepareVariabes based on a location state flag. Although it forces fetching, the query is executed twice
Tried using the retry 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 loop
Is there any other alternative solution?
The text was updated successfully, but these errors were encountered:
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 new Environment again and use that in the context provider
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: