<https://issuetracker.google.com/181968398> Animat...
# compose
k
https://issuetracker.google.com/181968398 Animation doesn't work when durationMillis >= 4295
d
For infinite animation, it's a known issue fixed in beta-02. See: https://issuetracker.google.com/180199994 In the bug linked above, you mention this snippet below with single iteration animation didn't work.
Copy code
val anim = Animatable(0f)
LaunchedEffect(key1 = Unit, block = {
    while (isActive) {
        anim.animateTo(360f, tween(durationMillis = 4295, easing = LinearEasing))
        anim.snapTo(0f)
    }
})
What's the behavior?
k
Oh... That's my mistake.... But how can I achieve the same effect by using Animatable?
d
Yes. 🙂
k
Oh.. I just forgot to use remember {}...
d
Uh yes, I recently had that happen to me too.😅 Started thinking about adding a lint check for it.