Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: facebook/react
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 65a56d0e99261481c721334a3ec4561d173594cd
Choose a base ref
...
head repository: facebook/react
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 45804af18d589fd2c181f3b020f07661c46b73ea
Choose a head ref
  • 2 commits
  • 16 files changed
  • 2 contributors

Commits on Oct 21, 2024

  1. [Flight] Support Async Modules in Server References (#31313)

    This is required to support for example top level await in a "use
    server" module or dependency of a "use server".
    sebmarkbage authored Oct 21, 2024
    Configuration menu
    Copy the full SHA
    69d4b80 View commit details
    Browse the repository at this point in the history
  2. [flow] Eliminate usage of more than 1-arg React.AbstractComponent i…

    …n React codebase (#31314)
    
    <!--
      Thanks for submitting a pull request!
    We appreciate you spending the time to work on these changes. Please
    provide enough information so that others can review your pull request.
    The three fields below are mandatory.
    
    Before submitting a pull request, please make sure the following is
    done:
    
    1. Fork [the repository](https://github.com/facebook/react) and create
    your branch from `main`.
      2. Run `yarn` in the repository root.
    3. If you've fixed a bug or added code that should be tested, add tests!
    4. Ensure the test suite passes (`yarn test`). Tip: `yarn test --watch
    TestName` is helpful in development.
    5. Run `yarn test --prod` to test in the production environment. It
    supports the same options as `yarn test`.
    6. If you need a debugger, run `yarn test --debug --watch TestName`,
    open `chrome://inspect`, and press "Inspect".
    7. Format your code with
    [prettier](https://github.com/prettier/prettier) (`yarn prettier`).
    8. Make sure your code lints (`yarn lint`). Tip: `yarn linc` to only
    check changed files.
      9. Run the [Flow](https://flowtype.org/) type checks (`yarn flow`).
      10. If you haven't already, complete the CLA.
    
    Learn more about contributing:
    https://reactjs.org/docs/how-to-contribute.html
    -->
    
    ## Summary
    
    In order to adopt react 19's ref-as-prop model, Flow needs to eliminate
    all the places where they are treated differently.
    `React.AbstractComponent` is the worst example of this, and we need to
    eliminate it.
    
    This PR eliminates them from the react repo, and only keeps the one that
    has 1 argument of props.
    
    ## How did you test this change?
    
    yarn flow
    SamChou19815 authored Oct 21, 2024
    Configuration menu
    Copy the full SHA
    45804af View commit details
    Browse the repository at this point in the history
Loading