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

Fix tree data update error #41

Merged
merged 2 commits into from
Jan 11, 2017
Merged

Fix tree data update error #41

merged 2 commits into from
Jan 11, 2017

Conversation

yesmeck
Copy link
Member

@yesmeck yesmeck commented Jan 5, 2017

在 treeData 变化后没有去更新 _treeNodesStates 导致 ant-design/ant-design#4084

@coveralls
Copy link

Coverage Status

Coverage increased (+5.008%) to 58.824% when pulling 9cab83b on fix-treeData-update-error into e998769 on master.

@coveralls
Copy link

Coverage Status

Coverage increased (+5.008%) to 58.824% when pulling 9cab83b on fix-treeData-update-error into e998769 on master.

@warmhug
Copy link
Collaborator

warmhug commented Jan 5, 2017

注意加入缓存是为了提高性能,避免重复计算。可以想想怎么再优化计算性能、再考虑去掉缓存。

@yesmeck
Copy link
Member Author

yesmeck commented Jan 5, 2017

所以不要这么改吗?

@warmhug
Copy link
Collaborator

warmhug commented Jan 5, 2017

可以这么改。这里改动建议要结合 tree 组件把整个流程理顺、不然容易出 bug ,是刚好看到你改这里,就提一下,没事。

@afc163
Copy link
Member

afc163 commented Jan 10, 2017

@warmhug

@warmhug warmhug merged commit 6e07ec4 into master Jan 11, 2017
@warmhug warmhug deleted the fix-treeData-update-error branch January 11, 2017 04:51
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.

4 participants