SIGN IN SIGN UP
facebook / react UNCLAIMED

The library for web and native user interfaces.

0 0 0 JavaScript

[Fiber] Correctly handle replaying when hydrating (#35494)

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
J
Josh Story committed
c18662405cc436646411647f8a8965c1c0594c3c
Parent: 583e200
Committed by GitHub <[email protected]> on 1/13/2026, 8:48:01 PM