react-motion
Advanced tools
Comparing version 0.4.3 to 0.4.4
{ | ||
"name": "react-motion", | ||
"version": "0.4.3", | ||
"version": "0.4.4", | ||
"homepage": "https://github.com/chenglou/react-motion", | ||
@@ -5,0 +5,0 @@ "authors": [ |
@@ -6,2 +6,5 @@ Legend: | ||
### 0.4.4 (June 4th 2016) | ||
- [F] Small fix to component unmounting bug (https://github.com/chenglou/react-motion/commit/49ea396041b0031b95f4941cc7efce200fcca454). It's not clear why this is erroring, but people want the temp fix. | ||
### 0.4.3 (April 19th 2016) | ||
@@ -8,0 +11,0 @@ - [F] `TransitionMotion` `styles` function not being passed `defaultStyles` value upon first call. #296 |
{ | ||
"name": "react-motion", | ||
"version": "0.4.3", | ||
"version": "0.4.4", | ||
"description": "A spring that solves your animation problems.", | ||
@@ -5,0 +5,0 @@ "main": "lib/react-motion.js", |
@@ -86,3 +86,3 @@ # React-Motion | ||
P.S. using TypeScript? [Here](https://github.com/chenglou/react-motion/issues/300#issuecomment-207262071) are the React-motion TypeScript definitions! | ||
P.S. using TypeScript? [Here](https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/react-motion/react-motion.d.ts) are the React-motion TypeScript definitions! | ||
@@ -89,0 +89,0 @@ --- |
@@ -340,2 +340,5 @@ /* @flow */ | ||
startAnimationIfNecessary(): void { | ||
if (this.unmounting) { | ||
return; | ||
} | ||
// TODO: when config is {a: 10} and dest is {a: 10} do we raf once and | ||
@@ -506,2 +509,3 @@ // call cb? No, otherwise accidental parent rerender causes cb trigger | ||
componentWillUnmount() { | ||
this.unmounting = true; | ||
if (this.animationID != null) { | ||
@@ -508,0 +512,0 @@ defaultRaf.cancel(this.animationID); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
261784
3607