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

[IMPORTANT] [v7] Next.js >= 15 is required to use useStateAction hook #113

Closed
TheEdoRan opened this issue May 7, 2024 · 1 comment
Closed

Comments

@TheEdoRan
Copy link
Owner

TheEdoRan commented May 7, 2024

Starting from next-safe-action v7.0.0-next.33, you are required to install a Next.js version >= 14.3.0-canary.40, because previous versions were missing support for React's useActionState hook, which is used under the hood for next-safe-action's useStateAction hook.

When the new stable release of Next.js with support for useActionState hook will be published, the next branch will be merged into main and version 7 of the library will be released.

SEE UPDATE BELOW ⬇️

@TheEdoRan TheEdoRan pinned this issue May 7, 2024
@TheEdoRan TheEdoRan changed the title [IMPORTANT] [v7] Next.js 14.3.0 canary version is required [IMPORTANT] [v7] Next.js >= 14.3.0-canary.40 version is required May 31, 2024
@TheEdoRan TheEdoRan changed the title [IMPORTANT] [v7] Next.js >= 14.3.0-canary.40 version is required [IMPORTANT] [v7] Next.js >= 15 is required to use useStateAction hook Jun 12, 2024
@TheEdoRan
Copy link
Owner Author

Next.js 15 is only required if you want to use the useStateAction hook, which uses React's useActionState hook under the hood. Previous versions of the framework lack support for it. You can use all the other features of next-safe-action v7 even with Next.js 14.

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