codesandbox demo
I want use form.getFieldsValue function in onValuesChange callback. But When typing in the input element,form.getFieldsValue can not get the value.

But when changing field value by form.setFieldsValue function, in onValuesChange callback can get field value. Is this by design?

In createBaseForm.js
in this.setFieldsValue function, onValuesChange callback is invoked after this.setFields.
But in this.onCollect function, onValuesChange callback is invoked before this.setFields. Is this by design?
|
onCollect(name_, action, ...args) { |

codesandbox demo
I want use form.getFieldsValue function in onValuesChange callback. But When typing in the input element,form.getFieldsValue can not get the value.

But when changing field value by form.setFieldsValue function, in onValuesChange callback can get field value. Is this by design?

In createBaseForm.js
in this.setFieldsValue function, onValuesChange callback is invoked after this.setFields.
form/src/createBaseForm.js
Line 370 in f02b478
But in this.onCollect function, onValuesChange callback is invoked before this.setFields. Is this by design?
form/src/createBaseForm.js
Line 133 in f02b478