reactiveui / ReactiveUI

An advanced, composable, functional reactive model-view-viewmodel framework for all .NET platforms that is inspired by functional reactive programming. ReactiveUI allows you to abstract mutable state away from your user interfaces, express the idea around a feature in one readable place and improve the testability of your application.
https://www.reactiveui.net
MIT License
8.06k stars 1.12k forks source link

Remove DistinctUntilChanged from WhenAnyValue #3846

Open user98392 opened 3 months ago

user98392 commented 3 months ago

When WhenAnyValue is used for example on a boolean property it doesn't react to all the changes and that is a problem. The reason is DistinctUntilChanged that is sitting on the last line of the SubscribeToExpressionChain method in the ReactiveNotifyPropertyChangedMixin class.

glennawatson commented 3 months ago

This won't be changing. It will be a breaking change for all users.

Possibly new operators could be added since this won't be a breaker binary change for existing users, and a change of existing functionality.