Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@react-spring/animated

Package Overview
Dependencies
Maintainers
1
Versions
129
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-spring/animated - npm Package Compare versions

Comparing version 9.4.4 to 9.4.5-beta.0

12

dist/react-spring-animated.cjs.dev.js

@@ -301,10 +301,10 @@ 'use strict';

shared.useLayoutEffect(() => {
const lastObserver = observerRef.current;
observerRef.current = observer;
shared.each(deps, dep => shared.addFluidObserver(dep, observer));
if (lastObserver) {
shared.each(lastObserver.deps, dep => shared.removeFluidObserver(dep, lastObserver));
shared.raf.cancel(lastObserver.update);
}
return () => {
if (observerRef.current) {
shared.each(observerRef.current.deps, dep => shared.removeFluidObserver(dep, observerRef.current));
shared.raf.cancel(observerRef.current.update);
}
};
});

@@ -311,0 +311,0 @@ React.useEffect(callback, []);

@@ -301,10 +301,10 @@ 'use strict';

shared.useLayoutEffect(() => {
const lastObserver = observerRef.current;
observerRef.current = observer;
shared.each(deps, dep => shared.addFluidObserver(dep, observer));
if (lastObserver) {
shared.each(lastObserver.deps, dep => shared.removeFluidObserver(dep, lastObserver));
shared.raf.cancel(lastObserver.update);
}
return () => {
if (observerRef.current) {
shared.each(observerRef.current.deps, dep => shared.removeFluidObserver(dep, observerRef.current));
shared.raf.cancel(observerRef.current.update);
}
};
});

@@ -311,0 +311,0 @@ React.useEffect(callback, []);

@@ -276,10 +276,10 @@ import { defineHidden, is, createInterpolator, eachProp, hasFluidValue, getFluidValue, each, isAnimatedString, useForceUpdate, useLayoutEffect, addFluidObserver, removeFluidObserver, raf, useOnce } from '@react-spring/shared';

useLayoutEffect(() => {
const lastObserver = observerRef.current;
observerRef.current = observer;
each(deps, dep => addFluidObserver(dep, observer));
if (lastObserver) {
each(lastObserver.deps, dep => removeFluidObserver(dep, lastObserver));
raf.cancel(lastObserver.update);
}
return () => {
if (observerRef.current) {
each(observerRef.current.deps, dep => removeFluidObserver(dep, observerRef.current));
raf.cancel(observerRef.current.update);
}
};
});

@@ -286,0 +286,0 @@ useEffect(callback, []);

{
"name": "@react-spring/animated",
"version": "9.4.4",
"version": "9.4.5-beta.0",
"description": "Animated component props for React",

@@ -31,8 +31,8 @@ "main": "dist/react-spring-animated.cjs.js",

"dependencies": {
"@react-spring/shared": "~9.4.4",
"@react-spring/types": "~9.4.4"
"@react-spring/shared": "~9.4.5-beta.0",
"@react-spring/types": "~9.4.5-beta.0"
},
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0"
"react": "^16.8.0 || >=17.0.0 || >=18.0.0"
}
}
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