Comparing version 2.1.1 to 2.1.2
@@ -155,2 +155,4 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2"; | ||
useIsomorphicLayoutEffect(function () { | ||
setAsyncVisible(visible); | ||
if (!supportMotion) { | ||
@@ -183,4 +185,2 @@ return; | ||
} | ||
setAsyncVisible(visible); | ||
}, [visible]); // ============================ Effect ============================ | ||
@@ -187,0 +187,0 @@ // Reset when motion changed |
@@ -173,2 +173,4 @@ "use strict"; | ||
(0, _useIsomorphicLayoutEffect.default)(function () { | ||
setAsyncVisible(visible); | ||
if (!supportMotion) { | ||
@@ -201,4 +203,2 @@ return; | ||
} | ||
setAsyncVisible(visible); | ||
}, [visible]); // ============================ Effect ============================ | ||
@@ -205,0 +205,0 @@ // Reset when motion changed |
{ | ||
"name": "rc-motion", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "React lifecycle controlled motion library", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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