ShouldUpdateState hook
In some cases you might need to postpone state update to some time for example until field is valid. In this case you can do use shouldUpdateState
method
ShouldUpdateStateParams:
form:
HTMLFormElement
- form that has being syncedformElements:
FormElement[]
- all form elements that are being syncedtarget:
HTMLElement | CustomFormElement
- current html element or custom form elementstate:
any
- state before updatecurrentValue:
any
- current field valuevalue:
any
- target value
Last updated
Was this helpful?