Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Flight][Fizz] ping work within current task #28894

Closed
wants to merge 1 commit into from

Commits on Apr 23, 2024

  1. [Flight][Fizz] ping work within current task

    Fizz and Flight both currently have a work schedule that enqueues tasks for retrying in a new macrotask. however it means that any given render will be split across multiple tasks even if any thenables that suspend are available within a microtask. This PR updates the ping mechanism for both renderers to schedule retry work on the microtask queue.
    
    As we've run into many times in React this is another instance where being able to schedule a microtask to run at the end of the queue would be ideal since we can optimize flushing better.
    gnoff committed Apr 23, 2024
    Configuration menu
    Copy the full SHA
    e77baa2 View commit details
    Browse the repository at this point in the history