React hydration error - typeof window
Unanswered
Bengal posted this in #help-forum
BengalOP
I get 3 react hydration errors. according to the docs:
"https://nextjs.org/docs/messages/react-hydration-error"
one of the possible reason is "2.Using checks like typeof window !== 'undefined' in your rendering logic"
which is something that I did 3 times. I believe it could be the reason, but I am not sure how to fix this because my app wouldn't build without doing that. is there a better solution?
"https://nextjs.org/docs/messages/react-hydration-error"
one of the possible reason is "2.Using checks like typeof window !== 'undefined' in your rendering logic"
which is something that I did 3 times. I believe it could be the reason, but I am not sure how to fix this because my app wouldn't build without doing that. is there a better solution?