Comparing version 2.6.1 to 2.6.2
@@ -205,2 +205,7 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2"; | ||
useEffect(function () { | ||
// [visible & motion not end] => [!visible & motion end] still need trigger onVisibleChanged | ||
if (asyncVisible) { | ||
firstMountChangeRef.current = true; | ||
} | ||
if (asyncVisible !== undefined && status === STATUS_NONE) { | ||
@@ -207,0 +212,0 @@ // Skip first render is invisible since it's nothing changed |
@@ -224,2 +224,7 @@ "use strict"; | ||
(0, React.useEffect)(function () { | ||
// [visible & motion not end] => [!visible & motion end] still need trigger onVisibleChanged | ||
if (asyncVisible) { | ||
firstMountChangeRef.current = true; | ||
} | ||
if (asyncVisible !== undefined && status === _interface.STATUS_NONE) { | ||
@@ -226,0 +231,0 @@ // Skip first render is invisible since it's nothing changed |
{ | ||
"name": "rc-motion", | ||
"version": "2.6.1", | ||
"version": "2.6.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
92470
1968