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
this is caused by the getServerSideProps. it only runs on page load. I think i previously had this working with no ssr. to fix this, you should use useSession which keeps track of the current user. the id of the user is accessible there. theres also a status in useSession that you will use to redirect to login
Describe the bug
Account/user's inbox does not change after signing out and then logging in with a different account but only changes after a reload.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The user in the inbox should be the one that is currently logged in on first render
Screenshots
test
but previously logged in astestuser
.The text was updated successfully, but these errors were encountered: