Page render correctly on navigation using Link
component, breaks on page refresh.
#34742
Unanswered
Bryce-Davidson
asked this question in
Help
Replies: 1 comment
-
You might run into an issue with rehydration: https://www.gatsbyjs.com/docs/conceptual/react-hydration/ You can give https://www.joshwcomeau.com/react/the-perils-of-rehydration/ a read to learn more about it and see if you can figure out if that's your issue. On first glance it seems like that to me. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Preliminary Checks
Description
The content renders on the page correctly on the initial page load, upon refreshing the react-calendar-heatmap does not render correctly, shifting all days over as well as creating a build-up of the month names on the right-hand side.
I am not sure why Gatsby initially renders the content correctly, and what is happening on refresh where it does not. Any help or guidance would be greatly appreciated. I'm also not entirely sure if this is a Gatsby problem or the components problem, I can't seem to figure this out :/. Cheers.
Initial Page Load

After Refreshing the Page
Here is the component code:
Reproduction Link
https://www.brycedavidson.dev/dailycode
Steps to Reproduce
...
Expected Result
The green square/data does not get shifted and there is no build-up of month names on the right-hand side
Actual Result
The green square/data gets shifted and there is a build-up of month names on the right-hand side
Environment
Config Flags
N/A
Beta Was this translation helpful? Give feedback.
All reactions