I have not been able to reproduce this in a simple example (or at least my simple example doesn't exhibit the same issue) so I'm just looking for someone who might be familiar with how roundProps works under the hood, or who might know enough about Vue + GSAP to provide a hint.
I have a Vue instance which displays a list of user comments. Each comment is defined as a component in Vue. Comments can either be "live" or "pending". As each pending comment is mounted(), I start a countdown, giving the user 60 seconds to edit their comments before the status is changed to "live". I use Greensock for the countdown, and display it inside the comment template. Certain user actions cause the countdown to reset.
Here's the thing, when I use roundProps (to keep the numbers tidy and simplify the template), resetting the countdown on one comment causes all other countdowns on the other pending comments to reset. When I comment out the roundProps line, I have no such problem - it works as you'd expect.
Here is the relevant (Vue method) code:
countDown() {
var _this = this;
_this.tween = TweenMax.to(_this, _this.seconds_left, {
age_now: 60,
// roundProps: ["age_now"],
ease: Linear.easeNone,
onComplete: function() {
_this.comment.status = "live";
}
});
},
It doesn't make any sense to me that the roundProps property by itself would create such havoc. It seems to be "dirtying" the counters in the other comments.