-
-
Notifications
You must be signed in to change notification settings - Fork 328
Open
Milestone
Description
I have a big schema and has splitted the form in parts for easier fill in/overview. That means that I cannot use validateForm, but instead validate each field.
I do (basically) :
Object.keys(AutoForm.getFormValues(formId).insertDoc) => (f){
if(!(AutoForm.validateField(formId, f))){
//handle error
}
}
This works well if I step through it in the debugger, but when run normally, validateField returns true whatever the reality is.
Am I missing some logic here? Why is the throttle there? Is my approach unique and wrong?
From the package code:
// Throttle field validation to occur at most every 300ms,
// with leading and trailing calls.
export const validateField = throttle(_validateField, 300)
Metadata
Metadata
Assignees
Labels
No labels