Skip to content

Docs async react hooks#8351

Closed
adi-rajput wants to merge 2 commits intoreactjs:mainfrom
adi-rajput:docs-async-react-hooks
Closed

Docs async react hooks#8351
adi-rajput wants to merge 2 commits intoreactjs:mainfrom
adi-rajput:docs-async-react-hooks

Conversation

@adi-rajput
Copy link

Description:

Update the Hooks reference page to introduce a new Async React Hooks section.

This groups together async-related hooks to better reflect React 19 patterns around Actions and improve discoverability of related APIs.

Changes:

  • Add a new Async React Hooks section on the Hooks reference page
  • Group useTransition, useActionState, and useOptimistic under this section
  • Remove useActionState from the Other Hooks section to avoid duplication
  • Follow the existing hooks index format using bullet links and short descriptions

Related issue(s):

Fixes #8316

Notes for reviewer:

The change is localized to the Hooks reference page and follows the existing documentation structure.
No hook behavior or API documentation was modified—only the organization of the hooks index page.

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

@meta-cla
Copy link

meta-cla bot commented Mar 11, 2026

Hi @adi-rajput!

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!

@github-actions
Copy link

Size changes

Details

📦 Next.js Bundle Analysis for react-dev

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

@adi-rajput adi-rajput closed this Mar 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Suggestion]: Add Async React Hooks section to hooks

1 participant