Skip to content

Conversation

@glennawatson
Copy link
Contributor

This removes the weak event manager from ReactiveUI.

The weak event manager was originally introduced to attempt to solve memory leak issues with the WPF platform. We ended up getting WhenActivated from that instead.

At the moment it's working for every platform that doesn't actually require it.

Weak events generally are a anti-pattern with observables since you have explicit cleanup mechanisms with Observables and you should be using those instead.

@glennawatson glennawatson requested review from a team December 9, 2019 05:30
@glennawatson glennawatson requested a review from a team December 9, 2019 07:39
@codecov
Copy link

codecov bot commented Dec 9, 2019

Codecov Report

Merging #2276 into master will decrease coverage by 0.44%.
The diff coverage is 20%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2276      +/-   ##
==========================================
- Coverage   55.77%   55.32%   -0.45%     
==========================================
  Files         114      113       -1     
  Lines        4486     4334     -152     
  Branches      688      660      -28     
==========================================
- Hits         2502     2398     -104     
+ Misses       1803     1771      -32     
+ Partials      181      165      -16
Impacted Files Coverage Δ
src/ReactiveUI/ReactiveObject/ReactiveObject.cs 84.61% <ø> (+0.4%) ⬆️
...UI/Platforms/windows-common/ReactiveUserControl.cs 0% <ø> (ø) ⬆️
src/ReactiveUI.Winforms/ViewModelViewHost.cs 90.62% <0%> (-0.38%) ⬇️
src/ReactiveUI.Winforms/RoutedViewHost.cs 89.85% <0%> (-0.56%) ⬇️
src/ReactiveUI/Expression/Reflection.cs 60.27% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f0aefc1...286ae6b. Read the comment docs.

@glennawatson glennawatson requested review from a team December 10, 2019 03:59
@glennawatson glennawatson merged commit 125387d into master Dec 10, 2019
@glennawatson glennawatson deleted the remove-weak-events branch December 10, 2019 04:17
@lock lock bot locked and limited conversation to collaborators Mar 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants