You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
As shown in RolandPheasant/DynamicData.Snippets#5, I have set up an ObservableList with TransFormMany and a projection inside. When I remove an item from the ObservableList, it is not removed from the output. It works with an ObservableCache.
Describe the bug
As shown in RolandPheasant/DynamicData.Snippets#5, I have set up an
ObservableList
withTransFormMany
and a projection inside. When I remove an item from theObservableList
, it is not removed from the output. It works with anObservableCache
.As Roland guessed, the projected item is not removed from the list because it is not found. I believe the culprit is here: https://github.com/RolandPheasant/DynamicData/blob/67367d0068531a94c9ec8a3e197a0b0055f5eca4/DynamicData/List/ChangeAwareList.cs#L519. The call to IndexOf is not using the equalityComparer passed when using TransformMany. I haven't found a way to pass it properly (yet).
Steps To Reproduce
Run the unit tests in https://github.com/RolandPheasant/DynamicData.Snippets.
I'm also happy to send a PR with unit tests here.
Expected behavior
The items should be removed from the output.
Screenshots
n/a
Environment
Additional context
The text was updated successfully, but these errors were encountered: