@react-spring/core
Advanced tools
Comparing version 9.4.5-beta.0 to 9.4.5-beta.1
@@ -2140,11 +2140,23 @@ import { eachProp, is, toArray, isAnimatedString, Globals, getFluidValue, useLayoutEffect, each, raf, flush, FluidValue, deprecateInterpolate, callFluidObservers, frameLoop, hasFluidValue, flushCalls, isEqual, getFluidObservers, addFluidObserver, removeFluidObserver, noop, useMemoOne, deprecateDirectCall, useForceUpdate, usePrev, useOnce, createInterpolator, createStringInterpolator } from '@react-spring/shared'; | ||
}); | ||
useOnce(() => () => { | ||
useOnce(() => { | ||
each(usedTransitions.current, t => { | ||
if (t.expired) { | ||
clearTimeout(t.expirationId); | ||
var _t$ctrl$ref; | ||
(_t$ctrl$ref = t.ctrl.ref) == null ? void 0 : _t$ctrl$ref.add(t.ctrl); | ||
const change = changes.get(t); | ||
if (change) { | ||
t.ctrl.start(change.payload); | ||
} | ||
}); | ||
return () => { | ||
each(usedTransitions.current, t => { | ||
if (t.expired) { | ||
clearTimeout(t.expirationId); | ||
} | ||
detachRefs(t.ctrl, ref); | ||
t.ctrl.stop(true); | ||
}); | ||
detachRefs(t.ctrl, ref); | ||
t.ctrl.stop(true); | ||
}); | ||
}; | ||
}); | ||
@@ -2151,0 +2163,0 @@ const keys = getKeys(items, propsFn ? propsFn() : props, prevTransitions); |
{ | ||
"name": "@react-spring/core", | ||
"version": "9.4.5-beta.0", | ||
"version": "9.4.5-beta.1", | ||
"main": "dist/react-spring-core.cjs.js", | ||
@@ -34,6 +34,6 @@ "module": "dist/react-spring-core.esm.js", | ||
"dependencies": { | ||
"@react-spring/animated": "~9.4.5-beta.0", | ||
"@react-spring/rafz": "~9.4.5-beta.0", | ||
"@react-spring/shared": "~9.4.5-beta.0", | ||
"@react-spring/types": "~9.4.5-beta.0" | ||
"@react-spring/animated": "~9.4.5-beta.1", | ||
"@react-spring/rafz": "~9.4.5-beta.1", | ||
"@react-spring/shared": "~9.4.5-beta.1", | ||
"@react-spring/types": "~9.4.5-beta.1" | ||
}, | ||
@@ -40,0 +40,0 @@ "peerDependencies": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
263903
8134