Skip to content
Discussion options

You must be logged in to vote

1- Is this approach still recommended for production apps?
2- Should I handle validation inside the action or client-side first?

Almost, prod ready, but you got it right, you should do validation and a tad more. Client side validation is to help your users submit the data that's most likely to succeed their operation, reducing friction when you require certain formats/types of data. Infamously, emails, passwords, identity numbers, and a few other fields often have strict format/shape requirements, you wouldn't want your user to submit the form only to then, tell them that a field was incorrectly formatted.

Server side validation ought to always be in place, and it is not just for type s…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@NourMoftah
Comment options

Answer selected by NourMoftah
Comment options

You must be logged in to vote
1 reply
@NourMoftah
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants