[Fiber] Track SuspendedState on stack instead of global (#34486)
Stacked on #34481. We currently track the suspended state temporarily with a global which is safe as long as we always read it during a sync pass. However, we sometimes read it in closures and then we have to be carefully to pass the right one since it's possible another commit on a different root has started at that point. This avoids this footgun. Another reason to do this is that I want to read it in `startViewTransition` which is in an async gap after which point it's no longer safe. So I have to pass that through the `commitRoot` bound function.
S
Sebastian Markbåge committed
5d49b2b7f42b6aebe749914fbd06640ded63c001
Parent: ae22247
Committed by GitHub <noreply@github.com>
on 9/15/2025, 8:10:47 PM