Skip to content

Conversation

jljsj33
Copy link
Member

@jljsj33 jljsj33 commented Nov 25, 2015

注释写在里面了。。那个_reactInternalInstance如果不给用。。。那你处理下

@jljsj33
Copy link
Member Author

jljsj33 commented Nov 25, 2015

这用例怎么老抽疯??

@jljsj33 jljsj33 closed this Nov 25, 2015
*这里会报错,用_reactInternalInstance来分别出这个组件还存在否,
* componentWillUnmount能去掉所有的setState吗?这里有延时处理...
*/
if (this._reactInternalInstance) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this.isMounted()

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

没有啊。。

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

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.

@jljsj33 jljsj33 reopened this Nov 26, 2015
@jljsj33
Copy link
Member Author

jljsj33 commented Nov 26, 2015

如果用占位符,那暴击时,占位符没有恢复,,在performEnter里得到的是null,所以用createElement创建div用this.placeholder来记录,用create后在出场时对这些div做velocity(item,'stop')时无效,还以会继续跑,但是用timeout,在离场启动时清除timeout就可以了。。。
但用例挂了。。

  1. rc-queue-anim should have queue animation:
    Error: expected '' to equal 'hidden'
    用timeout开始时没有设style。

afc163 added a commit that referenced this pull request Nov 28, 2015
@afc163 afc163 merged commit b3f6ff8 into master Nov 28, 2015
@afc163 afc163 deleted the clickRogue branch November 28, 2015 10:52
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.

3 participants