reactjs / react.dev

The React documentation website
https://react.dev/
Creative Commons Attribution 4.0 International
11k stars 7.51k forks source link

fix: Update useActionState to add isPending return #7122

Open timodwhit opened 1 month ago

timodwhit commented 1 month ago

Resolves #6872.

Also, leverages the examples and notes from: https://github.com/facebook/react/pull/28491 for further examples on isPending.

vercel[bot] commented 1 month ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
19-react-dev ❌ Failed (Inspect) Aug 22, 2024 3:54pm
react-dev ❌ Failed (Inspect) Aug 22, 2024 3:54pm
facebook-github-bot commented 1 month ago

Hi @timodwhit!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks!

timodwhit commented 1 month ago

Related to: https://github.com/vercel/next.js/pull/69163

facebook-github-bot commented 1 month ago

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

JakeSaterlay commented 3 weeks ago

Hey there! I worked on something similar here:

https://github.com/reactjs/react.dev/pull/6989#issuecomment-2249916548