-
DescriptionWhen in development mode react components work as expected but after building it isn't working how they should. I have created this repo to show the issue https://github.com/saihaj/gatsbyv3-react-build-issue Steps to reproduceSee: https://github.com/saihaj/gatsbyv3-react-build-issue Expected resultIn dev mode one of the pages is like this Actual resultBut in Environment
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
I tried downgrading to v2 and everything works as I would expect it to be. |
Beta Was this translation helpful? Give feedback.
-
You are most likely seeing React Hydration issues that are caused by lines like these: During SSR (gatsby build) the |
Beta Was this translation helpful? Give feedback.
-
As suggested in #30255 updating to gatsby |
Beta Was this translation helpful? Give feedback.
As suggested in #30255 updating to gatsby
v3.1
and regenerating the lock file fixes this.