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

StrictMode 下 preserve=fasle,使用动态节点时添加的值无法保存

Open wanpan11 opened this issue 1 year ago • 2 comments

StrictMode 会导致 Field 组件卸载一次,这时 preserve=false 就会把 store 里的对应字段重置为 undefined,导致无法赋值。

  • ref https://github.com/ant-design/ant-design/issues/49694

image

image

wanpan11 avatar Jul 03 '24 10:07 wanpan11