Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Hydration errors #907

Closed
wants to merge 10 commits into from
Closed

Fix Hydration errors #907

wants to merge 10 commits into from

Conversation

jplhomer
Copy link
Contributor

Description

We're noticing Hydration errors on most pages in Hydrogen's default template during initial page load.

Adding a Suspense boundary around server components which suspense that are passed as children to client components fixes the issue.

We're not sure if this is the expected behavior, but we're going to investigate with a smaller test case and potentially report it as a bug.

@github-actions

This comment has been minimized.

@jplhomer jplhomer requested a review from a team March 14, 2022 19:54
Copy link
Contributor

@blittle blittle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jplhomer
Copy link
Contributor Author

It does! Great catch.

@jplhomer
Copy link
Contributor Author

Closing since we fixed this with new suspense boundaries in #758

@jplhomer jplhomer closed this Mar 18, 2022
@jplhomer jplhomer deleted the jl-fix-hydration-errors branch March 18, 2022 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants