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.