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

Docs: Add note about useActionState and useFormState React versions #68880

Merged
merged 2 commits into from
Aug 14, 2024

Conversation

delbaoliveira
Copy link
Contributor

Warn users about React versions for useFormState vs. useActionState.

  • useFormState was renamed to useActionState in React 19 RC.
  • There are no React docs for useFormState that we can link to but the useActionState mentions the change.

To avoid having to update all mentions of useActionState now, then update all mentions of useFormState in the future, I've kept the useActionState examples as is, and added a callout about the React versions in the pages that have useActionState examples.

@ijjk ijjk added created-by: Next.js Docs team PRs by the Docs team. Documentation Related to Next.js' official documentation. labels Aug 14, 2024
@delbaoliveira delbaoliveira changed the title Docs: Add note about useActionState and useFormState Docs: Add note about useActionState and useFormState React versions Aug 14, 2024
@leerob leerob merged commit ada7d2f into canary Aug 14, 2024
52 checks passed
@leerob leerob deleted the docs-udye branch August 14, 2024 18:29
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
created-by: Next.js Docs team PRs by the Docs team. Documentation Related to Next.js' official documentation. locked
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants