-
Notifications
You must be signed in to change notification settings - Fork 172
Closed
Labels
Description
Awesome work @bezysoftware
I'm trying to feed a simple ItemsControl list with real time data using AsObservible.
It's updating correctly when changing data in Firebase but all objects in my collection is duplicating randomly over time.
First all objects loads but after like 30 seconds the same objects adds to the list.
Is this the wrong approach or am I missing something?
public MainWindow()
{
InitializeComponent();
var childUsers = client.Child("Users");
var observable = childUsers.AsObservable<User>();
Users.ItemsSource = observable.ObserveOnDispatcher().AsObservableCollection();
}
Cheers!