fix: prevent resource leak in animateToItem#76
Conversation
|
I think I'd prefer disposing the animation from |
|
It will cause issues with leaked ticker. Because list can be deleted (and associated ticker provider), but controller will remain with playing animations and will cause problem in mentioned issue. |
|
Is there any ETA for a new release? Also, talking about this PR, why do you even extract this functionality to a class which is essentially a single method that is immediately called. I don't see any reason for this class to be public also, as it's used only internally. Maybe it's a good reason to refactor this to a private method? |
|
@Zekfad, I agree with what you said! @CillianMyles, @renancaraujo, @knopp Maybe one of you can take a look at it and fix it, please! |
|
Please don't tag random people! I plan to look at this, but I am currently busy with other work. Also I'd like to see a test in the PR. |
|
@knopp I've added test for this specific case. You can comment out these lines and test will fail: |
|
I can even understand the frustration of getting an unexpected mention. But you are an official maintainer of the repository. Whatever problems there are, you and your colleagues should be responsible for fixing them. If you're not interested in having that kind of responsibility, consider passing it on to someone else. We all have jobs to do. And I include myself in that group by having a large repository that needs attention too, even if I have other things to do! Cheers. |
Co-authored-by: Gabriel Tavares <69699209+gbtb16@users.noreply.github.com>
`.toList` has external implementation via `List.of`
|
@Zekfad thank you for your PR, it helped a lot |
|
Hi folks, is there an update on this PR? I am also seeing the same issue as reported in: |
resolves #65