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
onSubmit callback has a method named setSubmitting but the children function doesn't expose that state. I can send a PR to expose this. What do you think?
The text was updated successfully, but these errors were encountered:
type state = {
values,
isSubmitting: bool,
errors: list((Config.fields, option(string))),
error: option(string)
};
/* Type of what is given to the children */
type reform = {
form: state,
handleChange: (Config.fields, value) => unit,
handleGlobalValidation: option(string) => unit,
handleSubmit: unit => unit,
getErrorForField: Config.fields => option(string)
};
currently, this is are the exposed utils
the state is the form field of the record passed
onSubmit
callback has a method namedsetSubmitting
but the children function doesn't expose that state. I can send a PR to expose this. What do you think?The text was updated successfully, but these errors were encountered: