Mutate not triggering / breaking cache #2059
Unanswered
SmitharyZach
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am running this code when a user logs out of my next js app. I am using beta 5 as well
The issue is that when a new user logs in, the old data from the old user is still showing in the UI. I have to refresh the page to get the correct data. Any idea why mutating is not triggering a re validation / re render? I have changed the last param from fast to true and same result. I have my next js wrapped in a SWR config but I am importing mutate from swr directly
import { mutate } from "swr";
Beta Was this translation helpful? Give feedback.
All reactions