chenglou / chenglou/react-motion
onRest seems to cause React-Motion to ignore rerenders
Open
- Dominant language
- JavaScript
- Stars
- 21.9k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
This `onRest` callback doesn't work:
``` js
@autobind
handleRest() {
this.setState(getNextTransitionState);
}
```
However, this one works as expected:
``` js
@autobind
handleRest() {
window.setTimeout(() => {
this.setState(getNextTransitionState);
}, 0);
}
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.