-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[Android] Ensure disconnected ItemsViewHandler doesn't hold onto the items source #24610
base: main
Are you sure you want to change the base?
Conversation
Hey there @filipnavara! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like Unit tests are failing
Apparently |
Hmmm, maybe for now we just restore |
Would it be okay to add implementation of |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
The test failure looks relevant. I don't see why it happens though, and I will need to reproduce it locally. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @filipnavara since #24699 was merged, can we rebase this for the other platforms?
Sure. I am away until next week but I will revive the PR when I get back home. |
b91421c
to
c3c2182
Compare
/rebase |
c3c2182
to
401ac33
Compare
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
Description of Change
Any control derived from
ItemsView
(CarouselView
,CollectionView
) never disconnected from theItemsSource.CollectionChanged
callback whenDisconnectHandler()
is called. If the lifetime of the item source outlives the controls it can result in theCollectionChanged
callback keeping part of the UI tree alive in a half-zombie state. Any change then calls the callback and it may cause crashes withNullReferenceException
as seen in #24304.Issues Fixed
Fixes #24304