You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using Server Actions is now the official and recommended way we build forms in React (Next.js). Wrapping an action in onSubmit function is currently the workaround but does not look like a nice one.
The validations we put in register function should be triggered by <form action={formAction}>
Currently it is not the case.
Expected behaviour
When using React Server Actions with action attribute the client side validation is still triggered.
What browsers are you seeing the problem on?
No response
Relevant log output
No response
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
Version Number
7.51.0
Codesandbox/Expo snack
https://codesandbox.io/p/sandbox/lively-sunset-4743mx
Steps to reproduce
Using Server Actions is now the official and recommended way we build forms in React (Next.js). Wrapping an action in onSubmit function is currently the workaround but does not look like a nice one.
The validations we put in
register
function should be triggered by<form action={formAction}>
Currently it is not the case.
Expected behaviour
When using React Server Actions with
action
attribute the client side validation is still triggered.What browsers are you seeing the problem on?
No response
Relevant log output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: