Skip to content

Move hydration code out of normal Suspense path#24532

Merged
acdlite merged 2 commits into
facebook:mainfrom
acdlite:move-hydration-code
May 25, 2022
Merged

Move hydration code out of normal Suspense path#24532
acdlite merged 2 commits into
facebook:mainfrom
acdlite:move-hydration-code

Conversation

@acdlite
Copy link
Copy Markdown
Collaborator

@acdlite acdlite commented May 10, 2022

Shuffling some code around to make it easier to follow. The logic for updating a dehydrated Suspense boundary is significantly different from the logic for a client-rendered Suspense boundary. Most of it was already lifted out into a separate function; this moves the remaining hydration-specific logic out of updateSuspenseComponent and into updateDehydratedSuspenseComponent instead.

No expected changes to program behavior.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed React Core Team Opened by a member of the React Core Team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants