chenglou / chenglou/react-motion

onRest seems to cause React-Motion to ignore rerenders

Open
#322 13 comments 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

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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.