field-form icon indicating copy to clipboard operation
field-form copied to clipboard

getFieldValue和getFieldsValue有什么本质上的区别吗

Open horseson2018 opened this issue 3 years ago • 0 comments

抛去类型校验,getFieldValue() 不传参数时的效果和 getFieldsValue(true) 可以说是一模一样,所以为什么要分成两个方法,而且 getFieldsValue(true) 获取出来的数据是组件内部维护的store,getFieldsValue(namePath) 又是一个新对象,导致用户在对传true获取到的数据进行一定操作时甚至会影响到视图,为什么不都返回一个即时的新对象?希望大佬给小弟解惑一下这些操作不是徒增心智负担🥺

horseson2018 avatar Aug 30 '21 12:08 horseson2018