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
Right now, onMount appears to be a non-validation function for FieldAPI, which I find a bit confusing given that the form itself has an onMount and onMountAsync
Instead, let's change it to pass value and formApi and use it within validateAsync like other validation methods.
Goals
Add support for onMountAsync
Update reference docs
Add integration tests
The text was updated successfully, but these errors were encountered:
crutchcorn
changed the title
Change onMount to match other validation function typings
Change FieldAPI onMount to match other validation function typings
Sep 2, 2023
Hey @juliendelort! Admittedly, I think we should hold off on this issue until #462 is merged, as it makes substantial changes to how validation works. It might be a bit of a headache to manage duplicate work in this space 😅
That said, I see that you have your own forms library, which looks great in its own right! I'd love to collab in big ways!
I just shot you a DM on Twitter - let's chat more about how we can merge efforts to make forms awesome!
Right now,
onMount
appears to be a non-validation function forFieldAPI
, which I find a bit confusing given that the form itself has anonMount
andonMountAsync
Instead, let's change it to pass
value
andformApi
and use it withinvalidateAsync
like other validation methods.Goals
onMountAsync
The text was updated successfully, but these errors were encountered: