Skip to content

Duplicate data using Realtime Streaming #198

@ghost

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions