[Forms] Reusable Form Components & Validation Mode pre-submit and post-submit #7495
JJosephttg
started this conversation in
Feature requests
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have 2 feature requests I would like to make:
Often times, we want to reuse form components in other places, but have different forms they are attached to. It gets complicated when you have a form that has a nested property set to represent the part of the form you have abstracted, and then another with a different property structure. It would be nice if form.key() was extensible/you could have form context where you could specify sub-parts of a form to where you could provide a base pathing to the nested property so that the underlying abstracted component could just reference the property name that other forms might share. For example, form A might be
{ user: { email, password }, ...otherProps }
whereas form B is simply { email, password }. Being able to separate the form from the UI component that needs to link to the form would be nice. No other form libraries have this type of functionalityA popular validation method for forms is where you do not validate or blur until they submit, and then after submission, it is on change. It would be nice to be able to control what pre and post submit validation does
Beta Was this translation helpful? Give feedback.
All reactions