SIGN IN SIGN UP
facebook / react UNCLAIMED

The library for web and native user interfaces.

0 0 0 JavaScript

[Fizz] Delay retrying hydration until after an animation frame (#34220)

The theory here is that when we reveal a boundary coming from the server
we want to paint that before hydrating it. Hydration gets scheduled in a
macrotask with the scheduler but it's in theory possible that it runs
before the paint. If that's the case, then the JS that runs before
yielding during hydration might slightly delay the paint and we might
miss a window to skip the previous paint.
S
Sebastian Markbåge committed
7a36dfedc70ffb49be2e4e23b40e01d34cef267e
Parent: 546bac7
Committed by GitHub <noreply@github.com> on 8/16/2025, 4:16:58 PM