Socket
Socket
Sign inDemoInstall

rc-motion

Package Overview
Dependencies
Maintainers
3
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-motion - npm Package Compare versions

Comparing version 2.6.1 to 2.6.2

5

es/hooks/useStatus.js

@@ -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

2

package.json
{
"name": "rc-motion",
"version": "2.6.1",
"version": "2.6.2",
"description": "React lifecycle controlled motion library",

@@ -5,0 +5,0 @@ "keywords": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc