Skip to content

Issues with ReactiveLists and Xamarin Forms ListView showing new items #806

@PureWeen

Description

@PureWeen

I have a Xamarin Forms project with a ListView bound to a ReactiveList... After a web call I saturate the list with items... On Android it works great and the items show up but on iOS it doesn't work....

I'm pretty positive it has something to do with the thread the items are being added from because if I add an item in the constructor of the view it shows up but then no subsequent items show up...

I've tried a bunch of scenarios but here's one I thought was interesting:
If I create an ObservableCollection, bind that to the ListView, then subscribe to the CollectionChangedEvent on the ReactiveList, then add items to that ObservableCollection as items are added to the ReactiveList then items show up..... If I change that same ObservableCollection to a ReactiveList then the items no longer show up

Hopefully that makes sense...

It's actually kind of frustrating because I've been trying to create the problem in a smaller project to send you but for some reason in that project everything works super :-(

I've tried as many different permutations of awaits/tasks/ObserveOns that I can but each project doesn't want to budge with how it works/doesn't work on iOS

If that all doesn't trigger anything I can probably take the defunct project and strip things away until I hopefully have something reproduceable... But I was just curious if something in there sounded familiar...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions