nathan815
Re:Parler Databases Disclosed
on Monday January 11, 2021 @04:39PM (#25737642)
> the error could also be more obvious and the code just fails open. someone has a try/catch and returns true either because of an accidental mistake or because they don't want users to be locked out when the provider is down.
Failing open would be a catastrophic mistake either way. "The auth provider is down, just let everyone in!"
Re:Show HN: React Hook Form – Simple Form Validation
on Wednesday October 09, 2019 @11:34AM (#21204175)
Having it in state allows you to react to changes in the form fields for validation, i.e. username availability, password strength, email validity, field character length (think twitter), etc.
Of course you can do this imperatively by manually querying the DOM and getting the input values, but I think it's nice to have the form data in the state to work with and have full control over it.