[Flight] use microtask for scheduling during prerenders (#30768)
In https://github.com/facebook/react/pull/29491 I updated the work scheduler for Flight to use microtasks to perform work when something pings. This is useful but it does have some downsides in terms of our ability to do task prioritization. Additionally the initial work is not instantiated using a microtask which is inconsistent with how pings work. In this change I update the scheduling logic to use microtasks consistently for prerenders and use regular tasks for renders both for the initial work and pings.
J
Josh Story committed
dc32c7f35ed6699e302dc7dbae17804555c669c6
Parent: e831c23
Committed by GitHub <[email protected]>
on 8/21/2024, 4:43:21 AM