chenglou / chenglou/react-motion

setState(...): Can only update a mounted or mounting component.

Open
#565 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
21.9k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

version: 0.5.2
//Transition
```
didLeave() {
const { didLeave } = this.props;
didLeave();
}

{ this.renderDom.bind(this) }

```
//container
```
destroyToast() {
const { node } = this.props; //node: another container render to body
const unmountResult = ReactDOM.unmountComponentAtNode(node);
if (unmountResult && node.parentNode) {
node.parentNode.removeChild(node);
}
}


{ message }

```

thanks~

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.