dependabot-preview[bot] on nuget
Bump Microsoft.NET.Test.Sdk fro… (compare)
[RolandPheasant/DynamicData] Issue created by gdurand
Filter(reapplyFilter) calls the
DynamicFilter constructor with a null predicateChanges, which causes it to throw an ArgumentNullException.
Also I don't understand the usage of this method: there is no filter specified.
Filter(Func<TObject, bool> filter, IObservable<Unit> reapplyFilter)could be useful.
IObservableList? I want to do something like: (
IObservableList<string> myList = this.SensorCache.Connect() .DistinctValues(s => s.Group) // Find distinct values of "Group" property .Filter(group => !string.IsNullOrEmpty(group)) // Filter and sort .Sort(Comparer<string>.Default) .ToObservableList() // doesn't exist, closest I can find is Bind
Is there a method that works like
SingleOrDefault? I am looking for
IObservable<IChangeSet<T>>.SingleOrDefault<T> that would return
I have a
SourceList<item>, and I need a
IObservable<bool> that says whether a defined item is present in the collection. With LINQ I'd do
.Contains(), but a reactive equivalent seems to be missing. I could use
.Filter(), but then
.SingleOrDefault equivalent is still needed. Am I missing something?
Should SourceList.Connect() pass an initial empty IChangeSet if the source list is empty?
It appears not to do this.
In most cases this causes no problems but when used with CombineLatest it causes the CombineLatest to wait for an initial change.
The example below outputs nothing if the list is empty but outputs a value as expected if it contains items.
SourceList<> sourcelist = new SourceList<>(); IObservable<bool> anotherObs = ...; // some code that conditionally adds items to sourceList sourceList.Connect() .QueryWhenChanged(x => someConditionalFunc(x)) .CombineLatest(anotherObs, (a, b) => a || b) .Subscribe(x => Console.WriteLine(x));
To get around this problem I have to add .StartWith() after the QueryWhenChanged call, but the code would be simpler if Connect() always output an initial changeset.