-
-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: prevent resource leak in animateToItem #76
base: main
Are you sure you want to change the base?
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 <[email protected]>
`.toList` has external implementation via `List.of`
resolves #65