Skip to content

[BUG] ObservableCollectionAdaptor does remove+add instead of replace #378

Description

@wilversings

Describe the bug
ObservableCollectionAdaptor does remove+add instead of replace on the IObservableCollection<?>

Steps To Reproduce

  1. Call source.Bind(obsCollection), where source is IObservable<ChangeSet<?>>
  2. Listen to obsCollection.CollectionChanged
  3. Send a update on source
  4. Notice that CollectionChanged raises 2 events for each update on source. One remove and one add

Expected behavior
CollectionChanged should raise just one update event

In a UI context, when binding to a grid, this issue causes the selection to be lost when there are any updates on the selected record.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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