adospace / reactorui-maui

MauiReactor is a MVU UI framework built on top of .NET MAUI
MIT License
597 stars 50 forks source link

Does this support ObservableCollection for CollectionView? #18

Closed ziaulhasanhamim closed 1 year ago

ziaulhasanhamim commented 1 year ago

Is it possible to use ObservableCollection for CollectionView so that items can be added or removed without changing the whole collection? If it is possible then how?

adospace commented 1 year ago

Well, usually in an MVU approach you shouldn't bind the ItemsSource property to an ObservableCollection: MauiReactor caches native controls used to render the single items so that it should be pretty fast even for large lists.

Do you have any sample code to share any issue you have with that approach?

ziaulhasanhamim commented 1 year ago

No, I don't have any issues with that. I just thought it would be a waste of CPU cycles to re-allocate an array every time you want to add something