Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reset fileds after unmount form component #129

Merged
merged 1 commit into from
Dec 25, 2017

Conversation

afc163
Copy link
Member

@afc163 afc163 commented Dec 23, 2017

ref #128

getFieldDecorator 的时候直接干掉缓存值,和 1.x 逻辑保持一致。

@HunDunDM

@HunDunDM
Copy link
Contributor

我反思了一下,需要保留数据的场合大都很复杂,基本都要上redux双绑。
所以默认逻辑是清空确实会用起来更方便。(我是直觉上觉得应该保留了)
而且这样确实在逻辑基本和1.x保持一致的情况下,针对组件类型 或者 key 在render时发生变化的情况,会保留数据,确实是完美解决了 #117

Orz

@afc163 afc163 merged commit df4151a into master Dec 25, 2017
@afc163 afc163 deleted the should-destroy-value-after-unmount branch December 25, 2017 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants