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
That's really convenient, especially for async validations and reactive updates, but it's also unsafe for 2 reasons:
We use a string
The errors are added/removed using the default == operator to compare the errors
I think these 2 issues can be addressed separately, I propose to add a cmp function to the Error module passed to the Formidable.Make functor. As for the first issue I don't have any idea, but we might have to develop a small layer on top of this logic to handle async validations.
The text was updated successfully, but these errors were encountered:
So far the hook exposes some "low level" functions to handle field and their status:
That's really convenient, especially for async validations and reactive updates, but it's also unsafe for 2 reasons:
==
operator to compare the errorsI think these 2 issues can be addressed separately, I propose to add a
cmp
function to theError
module passed to theFormidable.Make
functor. As for the first issue I don't have any idea, but we might have to develop a small layer on top of this logic to handle async validations.The text was updated successfully, but these errors were encountered: