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: revert "Update authentication docs to use useActionState (#72503)" #73306

Closed
wants to merge 1 commit into from

Conversation

JamBalaya56562
Copy link
Contributor

What?

Back out "Update authentication docs to use useActionState (#72503)" commit.
Original commit changeset: d4136d9

Why?

The useActionState Hook is currently only available in React’s Canary and experimental channels.
We should use useFormState until React 19 is stable.

x-ref: docs: Use useFormState over useActionState #69547

Improving Documentation

@ijjk ijjk added the Documentation Related to Next.js' official documentation. label Nov 28, 2024
@ijjk
Copy link
Member

ijjk commented Nov 28, 2024

Allow CI Workflow Run

  • approve CI run for commit: a3be3cf

Note: this should only be enabled once the PR is ready to go and can only be enabled by a maintainer

@delbaoliveira
Copy link
Contributor

Hey @JamBalaya56562! 👋🏼

Since v15 is now the latest stable version and using React 19 canary, you'll get a warning when using useFormState. We mention the hook update in our docs (here).

I'll close your PR because the stable version React 19 is coming soon (👀), so we don't have to duplicate the work. We'll also need to update any other mentions of useFormState to useActionState.

@JamBalaya56562 JamBalaya56562 deleted the useFormState branch December 3, 2024 23:44
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Documentation Related to Next.js' official documentation. locked
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants