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

We should not always set to hydration #4529

Merged
merged 2 commits into from
Oct 12, 2024
Merged

Conversation

JoviDeCroock
Copy link
Member

Fixes #4439

Currently we try to set everything to hydrate mode which feels like a mistake, we should only set the hydration flag when we are hydrating. I feel like we intended to set the SUSPENDED flag. This will make it so that we try to render the fallback rather than falling back to a non-suspended hydration mode, falling back to non-suspended hydration will clobber the DOM as we fall back to no excessDomChildren which is an inherent hydration mismatch.

This is so because we skip this condition

@coveralls
Copy link

Coverage Status

coverage: 99.488%. remained the same
when pulling de884ca on fix-suspense-rerender
into 675bcad on main.

@JoviDeCroock JoviDeCroock merged commit c9846f1 into main Oct 12, 2024
5 checks passed
@JoviDeCroock JoviDeCroock deleted the fix-suspense-rerender branch October 12, 2024 08:13
@JoviDeCroock JoviDeCroock mentioned this pull request Oct 13, 2024
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.

Suspense / ErrorBoundary content rendered twice when hydrating with render
3 participants