You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 591f3a4
Browse filesBrowse the repository at this point in the historyBrowse files
fix(hydration): resume a client-built suspended leaf without adopting server nodes
When claimRoots rejects a fragment and rebuildFragment builds it on the
client, a child that suspends via use() inside that rebuilt subtree is
client-built. The preserved hydrate activation must record that fact and
resume the source inside suspend() so activeHydration() returns null,
preventing the leaf from adopting at the saved cursor.
This fix was originally part of 3a6a06d but was lost when PR #1599
merged from origin/main, which modified the same claimRoots area without
the freshSuspension tracking. Re-applies the three-part mechanism:
suspend() records SuspenseExceptions that pass through it on
freshSuspension, preserveSuspendedHydrateActivation compares the
exception identity to set the activation's fresh flag, and the resume
path wraps renderBlock in suspend() when fresh is true.
0 commit comments