Skip to content

useFormState has been Deprecated / Moved. #85

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

Open
Fr3akyMurk opened this issue Mar 27, 2025 · 0 comments
Open

useFormState has been Deprecated / Moved. #85

Fr3akyMurk opened this issue Mar 27, 2025 · 0 comments

Comments

@Fr3akyMurk
Copy link
Contributor

Greetings!
After some experimenting with the feat-remove-lucia (and the hacking that followed to get it to work...)
I found out that Next.JS has deprecated / moved the useFormState.

It used to be.
import { useFormState } from "react-dom";

Now it's.
import { useActionState } from "react";

I am not too sure if Next.JS will deprecate this in the future and flat out error out but it's good idea to fix this before something happens.

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

No branches or pull requests

1 participant