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] Serialize pending server components by reference (lazy component) #20137

Merged
merged 1 commit into from
Oct 31, 2020

Commits on Oct 30, 2020

  1. Serialize pending server components by reference (lazy component)

    This now means that if a server component suspends, its value becomes a
    React.lazy object. I.e. the element that rendered the server component
    gets replaced with a lazy node.
    
    As of facebook#19033 lazy objects can be rendered in the node position. This allows
    us to suspend at the location of the server component while we're waiting
    on its content.
    
    Now server components has the same capabilities as Blocks to progressively
    reveal its content.
    sebmarkbage committed Oct 30, 2020
    Configuration menu
    Copy the full SHA
    4cf2540 View commit details
    Browse the repository at this point in the history