Next.js Discord

Discord Forum

Error: Text content does not match server-rendered HTML but don't want to change to CRS

Unanswered
Transvaal lion posted this in #help-forum
Open in Discord
Transvaal lionOP
I'm using redux to get user from local storage with useSelector and got this error like ServerSide: "" ClientSide: "abcxyz" while everything works normal in Header. GPT suggest some ways to use useEffect but it make the component mount after every others components loaded -> make the web is less beatiful. Moreover I tried to delete "<h1 className="ml-4 text-xl font-semibold">{user?.username}</h1>" then the same eror still appears but with <div>, <span>. Can some one help me?

1 Reply

Transvaal lionOP
I found out that everything works until I reload the page