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

API for prerendering a top-level update and deferring the commit #11232

Closed
wants to merge 2 commits into from

Commits on Oct 16, 2017

  1. API for prerendering a top-level update and deferring the commit

    Adds the ability to start rendering work without flushing the changes
    to the screen, by blocking the commit phase. This can be used to
    coordinate React's commit phase with other async work.
    
    - root.prerender schedules an update and returns a work object.
    - work.commit unblocks the commit phase and flushes the remaining
      work synchronously.
    
    (Not yet implemented is work.then, which schedules a callback that
    fires once the work has completed.)
    acdlite committed Oct 16, 2017
    Configuration menu
    Copy the full SHA
    8c452d8 View commit details
    Browse the repository at this point in the history
  2. Basic version of resuming for top-level prerender

    Implements a limited version of resuming that only applies to the root,
    to account for the pathological case where a prerendered root must be
    completely restarted before it can commit. This won't be necessary
    once we implement resuming for real.
    acdlite committed Oct 16, 2017
    Configuration menu
    Copy the full SHA
    decebe3 View commit details
    Browse the repository at this point in the history