Bug: Synchronously Restart Render on Error During Async Rendering to Prevent Inconsistencies #32167
Labels
Resolution: Needs More Information
Status: Unconfirmed
A potential issue that we haven't yet confirmed as a bug
Synchronously restart when an error is thrown during async rendering
Description
In async mode, events are interleaved with rendering. If an event mutates state that is later accessed during render, it can cause inconsistencies. Restarting the render synchronously resolves the inconsistency and prevents further mutations during interleaved events.
Steps to Reproduce
Expected Behavior
The render should restart synchronously to prevent inconsistencies and further mutations from interfering.
Actual Behavior
Inconsistent rendering occurs, leading to potential UI issues or errors.
Suggested Fix
Implement synchronous restart of the render when an error is thrown during async rendering to handle the interleaved events and ensure consistency.
The text was updated successfully, but these errors were encountered: