if I change B in "this.WhenAnyValue(x=>x.A.B.C)" to a new object, will ReactiveUI dispose subscription of previous B object? #3709
Answered
by
glennawatson
LJN-hzleaper
asked this question in
Q&A
-
When using ReactiveUI's WhenAnyValue, if I change B in "this.WhenAnyValue(x=>x.A.B.C)" to a new object, will ReactiveUI dispose subscription of previous B object? |
Beta Was this translation helpful? Give feedback.
Answered by
glennawatson
Jan 10, 2024
Replies: 1 comment
-
It will dispose of the subscription, providing the B property is a INotifyPropertyChanged or other mechanism that ReactiveUI knows about notifications from. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
LJN-hzleaper
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It will dispose of the subscription, providing the B property is a INotifyPropertyChanged or other mechanism that ReactiveUI knows about notifications from.