Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[UWP] Changes in CollectionViewSource dispose logic #11919

Merged
merged 2 commits into from
Sep 11, 2020
Merged

[UWP] Changes in CollectionViewSource dispose logic #11919

merged 2 commits into from
Sep 11, 2020

Conversation

jsuarezruiz
Copy link
Contributor

Description of Change

Changes in CollectionViewSource dispose logic on UWP.

Issues Resolved

API Changes

None

Platforms Affected

  • UWP

Behavioral/Visual Changes

None

Before/After Screenshots

Not applicable

Testing Procedure

Launch Core Gallery and navigate to the CollectionView galleries. Use the profiler to debug and verify that the CollectionViewSource is disposed.

PR Checklist

  • Targets the correct branch
  • Tests are passing (or failures are unrelated)

@samhouts samhouts added this to In Review in vCurrent (4.8.0) Aug 25, 2020
@samhouts samhouts added retarget-branch-required PR or associated issues target a milestone. Please target this PR to the matching branch. and removed retarget-branch-required PR or associated issues target a milestone. Please target this PR to the matching branch. labels Aug 25, 2020
@samhouts samhouts changed the base branch from 4.8.0 to 5.0.0 August 26, 2020 21:28
@samhouts samhouts removed this from In Review in vCurrent (4.8.0) Aug 26, 2020
@samhouts samhouts added this to In Review in vNext+1 (5.0.0) Aug 26, 2020
CollectionViewSource.Source = null;
}

CollectionViewSource.Source = null;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Won't this throw an exception is CollectionViewSource is null?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but there is a null check in the line 114.

@rmarinho rmarinho merged commit 1c88203 into 5.0.0 Sep 11, 2020
vNext+1 (5.0.0) automation moved this from In Review to Done Sep 11, 2020
@rmarinho rmarinho deleted the fix-11908 branch September 11, 2020 18:22
@samhouts samhouts added this to Done in Sprint 176 Sep 13, 2020
@samhouts samhouts added the approved Has two approvals, no pending reviews, and no changes requested label Sep 13, 2020
@samhouts samhouts added this to the 5.0.0 milestone Sep 19, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
a/collectionview approved Has two approvals, no pending reviews, and no changes requested p/UWP t/bug 🐛
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

[Bug] [UWP] ItemsViewRenderer doesn't clean up CollectionViewSource correctly
4 participants