This repository has been archived by the owner on May 1, 2024. It is now read-only.
[Bug] [iOS] CollectionView visible cells not updating correctly when using XCT ObservableRangeCollection after recent semaphore fix #13530
Labels
Projects
Description
I have a
CollectionView.ItemsSource
bound to anObservableRangeCollection
from Xamarin Community Toolkit.Some time after being initially shown, some items are removed and some items are added using
AddRange
andRemoveRange
.The visible cells do not change.
I don't know if the bug is in Forms, or XCT, but this worked fine in Forms versions without this fix: #11853
Steps to Reproduce
CollectionView.ItemsSource
toObservableRangeCollection
.AddRange
and/orRemoveRange
on the items.Expected Behavior
Visible items change.
Actual Behavior
Visible items do not change.
Scrolling the items off screen and back on fixes the cells.
Basic Information
Reproduction Link
https://github.com/GalaxiaGuy/xf-bugs/tree/bug/observablerangecollection
https://github.com/GalaxiaGuy/xf-bugs/archive/bug/observablerangecollection.zip
Click the button to push a new page. 100ms after the page is created all the cells should be green and not say "Loading".
Workaround
Just using
ObservableCollection
seems to work.The text was updated successfully, but these errors were encountered: