WeakEventListener in NetworkConnectionStateTrigger is duplicated #4059
Labels
bug 🐛
An unexpected issue that highlights incorrect behavior
good first issue
Issues identified as good for first-time contributors
Hacktoberfest
Hacktoberfest is a month-long celebration of open source software
help wanted
Issues identified as good community contribution opportunities
improvements ✨
Milestone
Describe the bug
Looks like
NetworkConnectionStateTrigger
is using a private copy of WeakEventListener, it's identical to the one we already have in the Toolkit, so we should update the source to use the existing code within the Toolkit.https://github.com/windows-toolkit/WindowsCommunityToolkit/blob/ebb12e0c38c22ec01849e202f8e477d8c1a67061/Microsoft.Toolkit.Uwp.UI/Triggers/NetworkConnectionStateTrigger.cs#L73
Expected behavior
Use existing code over shadow copy.
https://github.com/windows-toolkit/WindowsCommunityToolkit/blob/ebb12e0c38c22ec01849e202f8e477d8c1a67061/Microsoft.Toolkit.Uwp/Helpers/WeakEventListener.cs#L17
The text was updated successfully, but these errors were encountered: