Skip to content

Form 使用 shouldUpdate 获取 initialValues 为空 #56264

@crazyair

Description

@crazyair

Reproduction link

Edit on StackBlitz

Steps to reproduce

查看 demo

What is expected?

getFieldsValue() 的输出为 initialValues

What is actually happening?

demo 无法复现出来
Image

可以看看这个仓库 https://github.com/crazyair/form-update ,获取的 initialValues 为 {}

Image
Environment Info
antd 6.1.1
React latest
System mac
Browser chrome

Metadata

Metadata

Assignees

Labels

🎱 Collaborate PR onlyNeed confirm with Designer or Core member🐛 BugAnt Design Team had proved that this is a bug.🧶 Low PriorityThis issue may not fit our design or its not common requirement. We may not do this.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions