Skip to content

Conversation

@gnoff
Copy link
Collaborator

@gnoff gnoff commented Jan 12, 2026

When hydrating if something suspends and then resolves in a microtask it is possible that React will resume the render without fully unwinding work in progress. This can cause hydration cursors to be offset and lead to hydration errors. This change adds a restore step when replaying HostComponent to ensure the hydration cursor is in the appropriate position when replaying.

fixes: #35210

When hydrating if something suspends and then resolves in a microtask it is possible that React will resume the render without fully unwinding work in progress. This can cause hydration cursors to be offset and lead to hydration errors. This change adds a restore step when replaying HostComponent to ensure the hydration cursor is in the appropriate position when replaying.
@meta-cla meta-cla bot added the CLA Signed label Jan 12, 2026
@github-actions github-actions bot added the React Core Team Opened by a member of the React Core Team label Jan 12, 2026
@gnoff gnoff requested review from acdlite and sebmarkbage and removed request for acdlite January 12, 2026 20:48
@react-sizebot
Copy link

Comparing: 5aec1b2...eaa592d

Critical size changes

Includes critical production bundles, as well as any change greater than 2%:

Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable/react-dom/cjs/react-dom.production.js = 6.84 kB 6.84 kB +0.05% 1.88 kB 1.88 kB
oss-stable/react-dom/cjs/react-dom-client.production.js +0.05% 607.60 kB 607.92 kB +0.07% 107.53 kB 107.61 kB
oss-experimental/react-dom/cjs/react-dom.production.js = 6.84 kB 6.84 kB = 1.88 kB 1.88 kB
oss-experimental/react-dom/cjs/react-dom-client.production.js +0.05% 666.83 kB 667.15 kB +0.07% 117.42 kB 117.50 kB
facebook-www/ReactDOM-prod.classic.js +0.05% 692.91 kB 693.27 kB +0.06% 121.92 kB 122.00 kB
facebook-www/ReactDOM-prod.modern.js +0.05% 683.34 kB 683.65 kB +0.07% 120.31 kB 120.39 kB

Significant size changes

Includes any change greater than 0.2%:

(No significant changes)

Generated by 🚫 dangerJS against eaa592d

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.

Bug: A tree hydrated but some attributes of the server rendered HTML didn't match the client properties.

2 participants