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.0 to 2.6.1

8

es/hooks/useStatus.js

@@ -203,5 +203,11 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";

var firstMountChangeRef = React.useRef(false);
useEffect(function () {
if (asyncVisible !== undefined && status === STATUS_NONE) {
onVisibleChanged === null || onVisibleChanged === void 0 ? void 0 : onVisibleChanged(asyncVisible);
// Skip first render is invisible since it's nothing changed
if (firstMountChangeRef.current || asyncVisible) {
onVisibleChanged === null || onVisibleChanged === void 0 ? void 0 : onVisibleChanged(asyncVisible);
}
firstMountChangeRef.current = true;
}

@@ -208,0 +214,0 @@ }, [asyncVisible, status]); // ============================ Styles ============================

@@ -222,5 +222,11 @@ "use strict";

var firstMountChangeRef = React.useRef(false);
(0, React.useEffect)(function () {
if (asyncVisible !== undefined && status === _interface.STATUS_NONE) {
onVisibleChanged === null || onVisibleChanged === void 0 ? void 0 : onVisibleChanged(asyncVisible);
// Skip first render is invisible since it's nothing changed
if (firstMountChangeRef.current || asyncVisible) {
onVisibleChanged === null || onVisibleChanged === void 0 ? void 0 : onVisibleChanged(asyncVisible);
}
firstMountChangeRef.current = true;
}

@@ -227,0 +233,0 @@ }, [asyncVisible, status]); // ============================ Styles ============================

2

package.json
{
"name": "rc-motion",
"version": "2.6.0",
"version": "2.6.1",
"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