Open hansmbakker opened 2 weeks ago
2 reasons for this:
PropertyChangingEventHandler
that can lead to memory leaks in some scenarios when events are not unsubscribed.I am a big fan of the MVVM Community Toolkit and use it in all my applications, but in this specific case I think I have a good reason to not use it. 😄
I really appreciate the input and that you take the time to make this a better library! 👍
Aah, I never used WeakEventManager and was not aware of the memory leaks - I'm using WeakReferenceMessenger (without a dependency on maui) but I guess WeakEventManager has a different purpose for you?
I see you added
ObservableObject
which is also available from the MVVM Community Toolkit.Reusing the class from that library would allow to maintain less code yourself.