Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wilversings opened this issue Jun 30, 2020 · 1 comment
Closed
Labels

Comments

@wilversings
Copy link
Contributor

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.

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants