What is the onValuesChange use of the from component in react?

What is the onValuesChange usage of the from component in

react?
I read API, and didn"t quite understand it. Do I enter this function when the form changes?


Aug.25,2021

@Form.create({
  onValuesChange(props, changedValues, allValues) {
    console.log(props, changedValues, allValues)
  },
})

this is one of the parameters of the Form.create () method.

this function is called back only if the value of any item wrapped in Form changes.


what should I do if I want to call a custom method in the wrapped form

Menu