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

Replace SuspenseConfig object with an integer #19706

Merged
merged 1 commit into from
Aug 28, 2020

Commits on Aug 27, 2020

  1. Replace SuspenseConfig object with an integer

    Now that the options in SuspenseConfig are no longer supported, the
    only thing we use it for is to track whether an update is part of
    a transition.
    
    I've renamed `ReactCurrentBatchConfig.suspense` to
    `ReactCurrentBatchConfig.transition`, and changed the type to a number.
    The number is always either 0 or 1. I could have made it a boolean;
    however, most likely this will eventually be either a Lane or an
    incrementing identifier.
    
    The `withSuspenseConfig` export still exists until we've removed
    all the callers from www.
    acdlite committed Aug 27, 2020
    Configuration menu
    Copy the full SHA
    f5a0fc6 View commit details
    Browse the repository at this point in the history