We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9cf0a17 commit e814404Copy full SHA for e814404
packages/core/src/SpringValue.ts
@@ -811,9 +811,7 @@ export class SpringValue<T = any> extends FrameValue<T> {
811
const onRestQueue = anim.onRest
812
if (onRestQueue) {
813
// Preserve the "onRest" prop when the goal is dynamic.
814
- if (!anim.toValues) {
815
- anim.onRest = [onRestQueue[0]]
816
- }
+ anim.onRest = [anim.toValues ? noop : onRestQueue[0]]
817
818
// Never call the "onRest" prop for immediate or no-op animations.
819
if (anim.immediate || !anim.changed) {
0 commit comments