Skip to content

getFieldsValue 废弃掉strict后如何维持原有业务逻辑 #768

Description

@LiZhequ

#761 这个mr将strict废弃,是个break change,会导致getFieldsValue的取值结果发生变化,因为按原来的默认逻辑FormList会把未注册的字段也返回。废弃后我如果升级的话如何保持getFieldsValue的结果与原来一致呢,即FormList包含子项未注册字段数据,但是其余非FormList的只包含注册字段数据,由于我们项目中的表单很多,很多用到了FormList,取数据的时候也是按照List包含全部字段这一特性来做的, 一一排查getFieldsValue的结果是否与预期的一致非常费时间。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions