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
I was implementing creating the user store with zustand and then stumbled into this error.
I think that the reason is since we are using SSR from NextJS so the page will be rendered on the server and the server can't access the client's storage
My solution is not to use the userProfle from the useAuthStore hook to render the profile image, but to use a local state myUser
I was implementing creating the user store with zustand and then stumbled into this error.
I think that the reason is since we are using SSR from NextJS so the page will be rendered on the server and the server can't access the client's storage
My solution is not to use the
userProfle
from theuseAuthStore
hook to render the profile image, but to use a local statemyUser
I hope this will help anyone who comes across this issue.
The text was updated successfully, but these errors were encountered: