Git Product home page Git Product logo

dynamicdata.reactiveui's People

Contributors

gitter-badger avatar rolandpheasant avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dynamicdata.reactiveui's Issues

Bind to ReactiveList can destroy further DisposeMany/OnItemRemoved

Under some circumstances, it happens that after Bind() the OnItemRemoved is not getting called.
I wasn't able to get any differences when it happens and when its working. (have two similar places I use it)

With ObservableCollectionExtended, everything work as expected.

var sc = new SourceCache<int, int>(i => i.GetHashCode());
var rl = new ReactiveList<int>();

sc.Connect()
   .OnItemRemoved(model => Logger.Info("removed"))
   .Bind(rl)
   .OnItemRemoved(model => Logger.Info("removed after"))
   .DisposeMany()
   .Subscribe()

Seeing duplication on the ReactiveList when using a filter before the bind

Maybe I'm not understanding the interaction of bind quite correctly but I'm seeing items from the source collection being duplicated into the destination ReactiveList.

When I bind to an ObservableCollectionExtended that behaves as I'd expect it to

 [Test]
        public void DuplicatingResult()
        {
            
            _source.Add(new Person("Adult1", 47));
            _source.Add(new Person("Adult2", 48));
            _source.Add(new Person("Adult3", 49));
            _source.Add(new Person("Adult4", 150));
            _source.Add(new Person("Adult5", 150));
            _source.Add(new Person("Adult6", 150));
            _source.Add(new Person("Adult7", 150));
            _source.Add(new Person("Adult8", 150));

            Subject<int> ageTofilter = new Subject<int>();
            ObservableCollectionExtended<Person> nonReactiveListBinding = new ObservableCollectionExtended<Person>();
            
            var passengerFilter =
                ageTofilter
                    .Select(data =>
                    {
                        Func<Person, bool> filter = (twp) =>
                        {
                            return twp.Age == data;
                        };

                        return filter;
                    });
            
            _source
                .Connect()
                .Filter(passengerFilter)
                .Bind(nonReactiveListBinding)
                .Bind(_collection)
                .Subscribe();
            
            //this passes
            Assert.AreEqual(8, _collection.Count);
            
            //Change the filter
            ageTofilter.OnNext(150);
            
            //this passes
            Assert.AreEqual(5, nonReactiveListBinding.Count);
            
            
            //this fails with a result of 13. Items are being duplicated
            //into the reactivelist
            Assert.AreEqual(5, _collection.Count);
            
        }

Readme.md: add note about why this repo is stale, and no longer necessary (if that's true)

I just discovered DynamicData and ReactiveUI (I know I am late to the party), wanted to use them, then found this repo but was disappointed to find it neglected.

I started going down the road of forking it and try porting or at least understanding it myself so I could salvage any useful concepts, only to hit a compile error and find ReactiveList was removed from ReactiveUI in favor of....DynamicData!

Here are some helpful links for other developers who might be on the same journey:

Nuspec copy/paste issue

target file for nuspec is DynamicData.dll, instead of DD.RxUI.dll.

hint: only specify target folder to avoid this.

Also (strangely) the nupkg contains both DD.dll and DD.RxUI.dll, in different folders, probably not working well.

Cheers.

reactiveui 7

Can you please update DynamicData.ReactiveUI so that I can use the latest DynamicData 5 and ReactiveUI 7 versions?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.