SIGN IN SIGN UP
facebook / react UNCLAIMED

The library for web and native user interfaces.

0 0 0 JavaScript

[Fiber] Reset remaining child lanes after propagating context inside Offscreen (#34658)

Otherwise, when a context is propagated into an Activity (or Suspense)
this will leave work behind on the Offscreen component itself. Which
will cause an extra unnecessary render and commit pass just to figure
out that we're still defering it to idle.

This is because lazy context propagation, when calling to schedule some
work walks back up the tree all the way to the root. This is usually
fine for other nodes since they'll recompute their remaining child lanes
on the way up. However, for the Offscreen component we'll have already
computed it. We need to set it after propagation to ensure it gets
reset.
S
Sebastian Markbåge committed
d8a15c49a4bac8fb6730737c34eaf9c74c2f0d7e
Parent: 0d8ff4d
Committed by GitHub <noreply@github.com> on 9/30/2025, 6:51:48 PM