Skip to content

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.

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

4 participants