Open wanpan11 opened 3 months ago
StrictMode 会导致 Field 组件卸载一次,这时 preserve=false 就会把 store 里的对应字段重置为 undefined,导致无法赋值。
把首次创建的 value 缓存起来当 InitialValue 应该可以 @zombieJ 佬看看 有撒好的办法不
加到 InitialValue 里,reset 会有问题🤧🤧
StrictMode 会导致 Field 组件卸载一次,这时 preserve=false 就会把 store 里的对应字段重置为 undefined,导致无法赋值。