-
Notifications
You must be signed in to change notification settings - Fork 37
update ant-design/issues/588 #6
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
Conversation
这用例怎么老抽疯?? |
*这里会报错,用_reactInternalInstance来分别出这个组件还存在否, | ||
* componentWillUnmount能去掉所有的setState吗?这里有延时处理... | ||
*/ | ||
if (this._reactInternalInstance) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this.isMounted()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
没有啊。。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
6没了吧。。。
isMounted(...) is deprecated in plain JavaScript React classes. Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks.
如果用占位符,那暴击时,占位符没有恢复,,在performEnter里得到的是null,所以用createElement创建div用this.placeholder来记录,用create后在出场时对这些div做velocity(item,'stop')时无效,还以会继续跑,但是用timeout,在离场启动时清除timeout就可以了。。。
|
注释写在里面了。。那个_reactInternalInstance如果不给用。。。那你处理下