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: Use useFormState over useActionState #69547

Merged
merged 2 commits into from
Sep 2, 2024
Merged

docs: Use useFormState over useActionState #69547

merged 2 commits into from
Sep 2, 2024

Conversation

leerob
Copy link
Member

@leerob leerob commented Sep 1, 2024

We recently merged and combined the RC docs into the main docs, so there is a single codebase. This added new icons and callouts for parts of Next.js that are experimental or in a canary release.

However, this gets a little tricky with React 19. There have been changes to useFormState and useFormStatus which differ from the latest v14.x release and 15 + React 19 RC.

As 14 is still the stable release, we need to default to showing useFormState and add proper callouts for those on canary/RC. I also added more details to the upgrade guide for v15.

@ijjk ijjk added created-by: Next.js DevEx team Documentation Related to Next.js' official documentation. examples Issue was opened via the examples template. labels Sep 1, 2024
Copy link
Contributor

github-actions bot commented Sep 1, 2024

All broken links are now fixed, thank you!

@leerob leerob merged commit ec46f90 into canary Sep 2, 2024
54 checks passed
@leerob leerob deleted the useFormState branch September 2, 2024 03:16
@leerob
Copy link
Member Author

leerob commented Sep 2, 2024

I'm going ahead and shipping this one because it's quite literally broken on main.

Sam-Phillemon9493 pushed a commit to Sam-Phillemon9493/next.js that referenced this pull request Sep 2, 2024
We recently merged and combined the RC docs into the main docs, so there
is a single codebase. This added new icons and callouts for parts of
Next.js that are experimental or in a canary release.

However, this gets a little tricky with React 19. There have been
changes to `useFormState` and `useFormStatus` which differ from the
latest v14.x release and 15 + React 19 RC.

As 14 is still the stable release, we need to default to showing
`useFormState` and add proper callouts for those on canary/RC. I also
added more details to the upgrade guide for v15.
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
created-by: Next.js DevEx team Documentation Related to Next.js' official documentation. examples Issue was opened via the examples template. locked
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants