Skip to content

Preserve resolved dehydrated Suspense content on context change#10

Open
hbrooks wants to merge 1 commit into
mainfrom
demo/pr-35914
Open

Preserve resolved dehydrated Suspense content on context change#10
hbrooks wants to merge 1 commit into
mainfrom
demo/pr-35914

Conversation

@hbrooks
Copy link
Copy Markdown

@hbrooks hbrooks commented May 28, 2026

Originally PR facebook#35914 in facebook/react by @schiller-manuel

When a resolved dehydrated Suspense boundary contains a suspended child,
a parent context change can mark the boundary as needing work during
hydration. If selective hydration retries are exhausted, React would
give up and replace the dehydrated subtree with a client-rendered
boundary, destroying the server HTML and showing the fallback.

Preserve the dehydrated fragment in this case when the boundary is
resolved and the only change is context (not props).

Fixes facebook#22692
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