Gu.Reactive icon indicating copy to clipboard operation
Gu.Reactive copied to clipboard

Warn if filtering on mutable property without providing obvservable

Open JohanLarsson opened this issue 6 years ago • 0 comments

var filtered = xs.AsReadOnlyFilteredView(x => x.P != null);

Where P is a mutable property.

Code fix can add:

var filtered = xs.AsReadOnlyFilteredView(
    x => x.P != null,
    x => x.ObserverPropertyChangedSlim(x => x.P));

JohanLarsson avatar Jun 26 '19 07:06 JohanLarsson